]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest: Add missing checks for the availability of machines
authorThomas Huth <thuth@redhat.com>
Tue, 30 Sep 2025 09:04:44 +0000 (11:04 +0200)
committerFabiano Rosas <farosas@suse.de>
Wed, 1 Oct 2025 20:09:21 +0000 (17:09 -0300)
commit030cd885563e9ca843a46ec7e65b657c93df5af7
tree0a71407bf2c22da76bdefa48f2a7e73f3a6b66d3
parent29b77c1a2db2d796bc3847852a5c8dc2a1e6e83b
tests/qtest: Add missing checks for the availability of machines

When QEMU has been compiled with "--without-default-devices", the
machines might not be available in the binary. Let's properly check
for the machines before running the tests to avoid that they are
failing in this case.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250930090444.234431-1-thuth@redhat.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
tests/qtest/bios-tables-test.c
tests/qtest/cpu-plug-test.c
tests/qtest/riscv-csr-test.c