tests/qtest: Check for virtio-blk before using -cdrom with the arm virt machine
authorThomas Huth <thuth@redhat.com>
Thu, 25 May 2023 08:10:14 +0000 (10:10 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 26 May 2023 07:10:49 +0000 (09:10 +0200)
commit8c730de717f431868919f2a8323442b8bd77545e
tree0ed78674f39b0fc18a091d687268f29a3e5b58c5
parent54c8ff27f60dfef7909b4a4a5a9ed96fc2ce8197
tests/qtest: Check for virtio-blk before using -cdrom with the arm virt machine

The arm "virt" machine needs "virtio-blk-pci" for devices that get attached
via the "-cdrom" option. Since this is an optional device that might not
be available in the binary, we should check for the availability of this
device first before using it.

Message-Id: <20230525081016.1870364-3-thuth@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/bios-tables-test.c
tests/qtest/cdrom-test.c