[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/12] tests/qtest: Skip virtio-serial-console tests if device no
From: |
Fabiano Rosas |
Subject: |
[PATCH 04/12] tests/qtest: Skip virtio-serial-console tests if device not present |
Date: |
Mon, 6 Feb 2023 12:04:08 -0300 |
The virtconsole device might not be present in the QEMU build that is
being tested. Skip the test if that's the case.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/virtio-serial-test.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/qtest/virtio-serial-test.c b/tests/qtest/virtio-serial-test.c
index 2541034822..f4e05e8fdd 100644
--- a/tests/qtest/virtio-serial-test.c
+++ b/tests/qtest/virtio-serial-test.c
@@ -28,6 +28,10 @@ static void register_virtio_serial_test(void)
{
QOSGraphTestOptions opts = { };
+ if (!qtest_has_device("virtconsole")) {
+ return;
+ }
+
opts.edge.before_cmd_line = "-device virtconsole,bus=vser0.0";
qos_add_test("console-nop", "virtio-serial", virtio_serial_nop, &opts);
--
2.35.3
- [PATCH 02/12] tests/qtest: Do not run lsi53c895a test if device is not present, (continued)
[PATCH 03/12] tests/qtest: Add dependence on PCIE_ROOT for virtio-net-failover.c, Fabiano Rosas, 2023/02/06
[PATCH 04/12] tests/qtest: Skip virtio-serial-console tests if device not present,
Fabiano Rosas <=
[PATCH 05/12] tests/qtest: hd-geo-test: Check for missing devices, Fabiano Rosas, 2023/02/06
[PATCH 06/12] tests/qtest: Skip unplug tests that use missing devices, Fabiano Rosas, 2023/02/06
[PATCH 07/12] tests/qtest: drive_del-test: Skip tests that require missing devices, Fabiano Rosas, 2023/02/06