@samitouri / QOSamiQemu / commits / bb98963d6d

tests/qtest/pxe-test: skip per-row cases whose machine is unavailable

The x86 test table mixes 'pc' and 'q35' rows. When QEMU is built without the i440fx/pc machine, the 'pc' rows fail with "unsupported machine type". Add a per-row qtest_has_machine() check in test_batch(), mirroring the existing per-row qtest_has_device() guard, so rows for an unavailable machine are skipped while the others (e.g. q35) still run. Signed-off-by: Rohitashv Kumar <roohiit@amazon.de> Signed-off-by: Fabiano Rosas <farosas@suse.de>

Rohitashv Kumar committed Jul 17, 2026 at 08:18 UTC bb98963d6df300fe6fc6d2074198e220571cd0cd
1 file changed +4
tests/qtest/pxe-test.c
+4
@@ -108,6 +108,10 @@ static void test_batch(const testdef_t *tests, bool ipv6)
108 const testdef_t *test = &tests[i];
109 char *testname;
110
111 + if (!qtest_has_machine(test->machine)) {
112 + continue;
113 + }
114 +
115 if (!qtest_has_device(test->model)) {
116 continue;
117 }