qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 04/12] tests/qtest: Skip virtio-serial-console tests if devic


From: Thomas Huth
Subject: Re: [PATCH 04/12] tests/qtest: Skip virtio-serial-console tests if device not present
Date: Tue, 7 Feb 2023 14:37:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 06/02/2023 16.04, Fabiano Rosas wrote:
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;
+    }

Maybe it makes more sense to check for CONFIG_VIRTIO_SERIAL in the meson.build file first?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]