Commit bb98963d6d for qemu.org

commit bb98963d6df300fe6fc6d2074198e220571cd0cd
Author: Rohitashv Kumar <roohiit@amazon.de>
Date:   Fri Jul 17 08:18:36 2026 +0000

    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>

diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c
index a3f900fbea..e85dec5a4e 100644
--- a/tests/qtest/pxe-test.c
+++ b/tests/qtest/pxe-test.c
@@ -108,6 +108,10 @@ static void test_batch(const testdef_t *tests, bool ipv6)
         const testdef_t *test = &tests[i];
         char *testname;

+        if (!qtest_has_machine(test->machine)) {
+            continue;
+        }
+
         if (!qtest_has_device(test->model)) {
             continue;
         }