tests/qemu-iotests: Test 157 and 227 require virtio-blk
authorThomas Huth <thuth@redhat.com>
Mon, 25 Mar 2024 15:47:37 +0000 (16:47 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2024 13:21:26 +0000 (14:21 +0100)
Tests 157 and 227 use the virtio-blk device, so we have to mark these
tests accordingly to be skipped if this devices is not available (e.g.
when running the tests with qemu-system-avr only).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240325154737.1305063-1-thuth@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/157
tests/qemu-iotests/227

index 0dc9ba68d20f4aecaef8054e4d2a121fd57b3f16..aa2ebbfb4b43f22645061e415223327b4bd1a01f 100755 (executable)
@@ -40,6 +40,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fmt generic
 _supported_proto file
 
+_require_devices virtio-blk
+
 do_run_qemu()
 {
     (
index 7e45a47ac6165ec04a7e6daf925aa522de8054df..eddaad679e25d5f65cf05e97302a83255416f20f 100755 (executable)
@@ -40,6 +40,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fmt generic
 _supported_proto file
 
+_require_devices virtio-blk
+
 do_run_qemu()
 {
     echo Testing: "$@"