From: Thomas Huth Date: Wed, 23 Feb 2022 12:31:27 +0000 (+0100) Subject: tests/qemu-iotests/040: Skip TestCommitWithFilters without 'throttle' X-Git-Tag: qemu-xen-4.17.0-rc4~69^2~18 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=024354ea9164d3c4b6fd766784939fe39fa4e166;p=qemu-xen.git tests/qemu-iotests/040: Skip TestCommitWithFilters without 'throttle' iotest 040 already has some checks for the availability of the 'throttle' driver, but some new code has been added in the course of time that depends on 'throttle' but does not check for its availability. Add a check to the TestCommitWithFilters class so that this iotest now also passes again if 'throttle' has not been enabled in the QEMU binaries. Signed-off-by: Thomas Huth Message-Id: <20220223123127.3206042-1-thuth@redhat.com> Signed-off-by: Hanna Reitz --- diff --git a/tests/qemu-iotests/040 b/tests/qemu-iotests/040 index 6af5ab9e76..0e1cfd7e49 100755 --- a/tests/qemu-iotests/040 +++ b/tests/qemu-iotests/040 @@ -744,6 +744,7 @@ class TestCommitWithFilters(iotests.QMPTestCase): pattern_file) self.assertFalse('Pattern verification failed' in result) + @iotests.skip_if_unsupported(['throttle']) def setUp(self): qemu_img('create', '-f', iotests.imgfmt, self.img0, '64M') qemu_img('create', '-f', iotests.imgfmt, self.img1, '64M')