tests/qtest/usb-hcd-xhci-test: Check availability of devices before using them
commit0a1e462daf03bf0c8119e4369807d0d4a965fbc6
authorThomas Huth <thuth@redhat.com>
Tue, 22 Aug 2023 16:30:24 +0000 (22 18:30 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 31 Aug 2023 17:10:01 +0000 (31 19:10 +0200)
tree1ea1cb399a8bb8b285f0aa985c83a9f180021013
parentc3513ce5c8736807cb4e5ff529eebadf7a82dbde
tests/qtest/usb-hcd-xhci-test: Check availability of devices before using them

The "usb-uas" and "usb-ccid" might not be compiled into the QEMU binary,
so let's better check first whether they are available.

Message-Id: <20230822163024.61529-1-thuth@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/usb-hcd-xhci-test.c