[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 01/12] tests/qtest: Skip PXE tests for missing devices
From: |
Fabiano Rosas |
Subject: |
[PATCH v3 01/12] tests/qtest: Skip PXE tests for missing devices |
Date: |
Mon, 13 Feb 2023 18:07:27 -0300 |
Check if the devices we're trying to add are present in the QEMU
binary. They could have been removed from the build via Kconfig or the
--without-default-devices option.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
tests/qtest/pxe-test.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c
index 52f0b5c67c..62b6eef464 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_device(test->model)) {
+ continue;
+ }
+
testname = g_strdup_printf("pxe/ipv4/%s/%s",
test->machine, test->model);
qtest_add_data_func(testname, test, test_pxe_ipv4);
--
2.35.3
- [PATCH v3 00/12] qtests vs. default devices, Fabiano Rosas, 2023/02/13
- [PATCH v3 01/12] tests/qtest: Skip PXE tests for missing devices,
Fabiano Rosas <=
- [PATCH v3 02/12] tests/qtest: Do not run lsi53c895a test if device is not present, Fabiano Rosas, 2023/02/13
- [PATCH v3 03/12] tests/qtest: Add dependence on PCIE_PORT for virtio-net-failover.c, Fabiano Rosas, 2023/02/13
- [PATCH v3 05/12] tests/qtest: hd-geo-test: Check for missing devices, Fabiano Rosas, 2023/02/13
- [PATCH v3 04/12] tests/qtest: Don't build virtio-serial-test.c if device not present, Fabiano Rosas, 2023/02/13
- [PATCH v3 06/12] tests/qtest: Fix coding style in device-plug-test.c, Fabiano Rosas, 2023/02/13
- [PATCH v3 07/12] tests/qtest: Skip unplug tests that use missing devices, Fabiano Rosas, 2023/02/13
- [PATCH v3 08/12] tests/qtest: drive_del-test: Skip tests that require missing devices, Fabiano Rosas, 2023/02/13
- [PATCH v3 09/12] tests/qtest: Check for devices in bios-tables-test, Fabiano Rosas, 2023/02/13
- [PATCH v3 10/12] tests/qtest: Do not include hexloader-test if loader device is not present, Fabiano Rosas, 2023/02/13