tests: improve performance of device-introspect-test
commit3e7b80f84d4584dc3ed6a088cc914f2de6ed0796
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 10 Jul 2020 06:07:19 +0000 (10 08:07 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Sat, 11 Jul 2020 14:53:00 +0000 (11 15:53 +0100)
tree6b9599c161f9e41d838f316c1aeedf372a445e88
parent6957fd98dc1b5c9501cb8e16d4b39d39a80a1820
tests: improve performance of device-introspect-test

Total execution time with "-m slow" and x86_64 QEMU, drops from 3
minutes 15 seconds, down to 54 seconds.

Individual tests drop from 17-20 seconds, down to 3-4 seconds.

The cost of this change is that any QOM bugs resulting in the test
failure will not be directly associated with the device that caused
the failure. The test case is not frequently identifying such bugs
though, and the cause is likely easily visible in the patch series
that causes the failure. So overall the shorter running time is
considered the more important factor.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
[thuth: Add the tree check to test_device_intro_none() and
 test_device_intro_abstract(), too, just to be sure...]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200710060719.22386-1-thuth@redhat.com>
tests/qtest/device-introspect-test.c