tests/qtest/cdrom-test: Check whether devices are available before using them
commit95c0b7701885a698a067f402fa430b7c1a562534
authorThomas Huth <thuth@redhat.com>
Mon, 20 Dec 2021 08:10:53 +0000 (20 09:10 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 22 Dec 2021 07:13:05 +0000 (22 08:13 +0100)
tree5c096881ad8de65a843c198a9d2abf5e87b36987
parent9cbd66028b82c57f3f24399c6851f21495ccc775
tests/qtest/cdrom-test: Check whether devices are available before using them

Downstream users might want to disable legacy devices in their binaries,
so we should not blindly assume that they are available. Add some proper
checks before using them.

Message-Id: <20211220081054.151515-4-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/cdrom-test.c