diff options
author | Thomas Huth <thuth@redhat.com> | 2022-02-23 13:31:27 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2022-03-07 09:19:20 +0100 |
commit | 024354ea9164d3c4b6fd766784939fe39fa4e166 (patch) | |
tree | 443e42295e7106ced1734e3c527fb802b51204ce /tests/qemu-iotests | |
parent | 45e62b464a5fa62f0f005b76f59ad587944cd55f (diff) | |
download | qemu-024354ea9164d3c4b6fd766784939fe39fa4e166.zip qemu-024354ea9164d3c4b6fd766784939fe39fa4e166.tar.gz qemu-024354ea9164d3c4b6fd766784939fe39fa4e166.tar.bz2 |
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 <thuth@redhat.com>
Message-Id: <20220223123127.3206042-1-thuth@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests')
-rwxr-xr-x | tests/qemu-iotests/040 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/040 b/tests/qemu-iotests/040 index 6af5ab9..0e1cfd7 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') |