Skip to contentSkip to conversation

tests/qemu-iotests/040: Skip TestCommitWithFilters without 'throttle'

PATCH Applied Thomas Huth 2 participants 2 messages Feb 23, 2022 – Feb 24, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tests/qemu-iotests/040 | 1 +
 1 file changed, 1 insertion(+)
tests/qemu-iotests/040 +1 -0
index 6af5ab9e76..0e1cfd7e49 100755
@@ -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')
Signature · 1 line
2.27.0
Applied
#1 lore raw
Quoted 11 lines · Thomas Huth

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.

---
  tests/qemu-iotests/040 | 1 +
  1 file changed, 1 insertion(+)

Thanks, applied to my block branch:

https://gitlab.com/hreitz/qemu/-/commits/block

Hanna