iotests: Add more "_require_drivers" checks to the shell-based tests
PATCH 1/1 iotests: Add more "_require_drivers" checks to the shell-based tests
Test 051 should be skipped if nbd is not available, and 267 should be skipped if copy-on-read is not enabled.
Signed-off-by Thomas Huth <[email protected]>
--- tests/qemu-iotests/051 | 1 + tests/qemu-iotests/267 | 1 + 2 files changed, 2 insertions(+)
tests/qemu-iotests/051 +1 -0
@@ -41,6 +41,7 @@ _supported_proto file # A compat=0.10 image is created in this test which does not support anything # other than refcount_bits=16 _unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' +_require_drivers nbd do_run_qemu() {
tests/qemu-iotests/267 +1 -0
@@ -40,6 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow2 _supported_proto file _supported_os Linux +_require_drivers copy-on-read # Internal snapshots are (currently) impossible with refcount_bits=1 _unsupported_imgopts 'refcount_bits=1[^0-9]'
Signature · 1 line
2.18.1
Quoted 8 lines · Thomas Huth
Test 051 should be skipped if nbd is not available, and 267 should be skipped if copy-on-read is not enabled.
Signed-off-by Thomas Huth <[email protected]>--- tests/qemu-iotests/051 | 1 + tests/qemu-iotests/267 | 1 + 2 files changed, 2 insertions(+)
Reviewed-by Eric Blake <[email protected]>
Quoted 26 lines
tests/qemu-iotests/051 +1
-0@@ -41,6 +41,7 @@ _supported_proto file # A compat=0.10 image is created in this test which does not support anything # other than refcount_bits=16 _unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' +_require_drivers nbd do_run_qemu() {tests/qemu-iotests/267 +1
-0@@ -40,6 +40,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow2 _supported_proto file _supported_os Linux +_require_drivers copy-on-read # Internal snapshots are (currently) impossible with refcount_bits=1 _unsupported_imgopts 'refcount_bits=1[^0-9]'
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
Kevin Wolf
AppliedAm 18.12.2019 um 17:15 hat Thomas Huth geschrieben:
Quoted 4 lines
Test 051 should be skipped if nbd is not available, and 267 should be skipped if copy-on-read is not enabled.
Signed-off-by Thomas Huth <[email protected]>
Thanks, applied to the block branch.
Kevin