]> git.proxmox.com Git - mirror_qemu.git/commitdiff
iotests: Add more "_require_drivers" checks to the shell-based tests
authorThomas Huth <thuth@redhat.com>
Wed, 18 Dec 2019 16:15:41 +0000 (17:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 Dec 2019 11:55:31 +0000 (12:55 +0100)
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 <thuth@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/051
tests/qemu-iotests/267

index 53bcdbc911961d0ca503c1d876db956daa6de8ff..a13bce2fd013003532424945f0e9337390cf6eb5 100755 (executable)
@@ -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()
 {
index 170e173c0a54263e13f3d0742c03940e7f03987d..b823668e29d72e6ad07a51ee3356a25ad331fa6b 100755 (executable)
@@ -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]'