tests/avocado/virtio-gpu: Fix test_vhost_user_vga_virgl for edid support
authorThomas Huth <thuth@redhat.com>
Tue, 14 Nov 2023 20:34:56 +0000 (21:34 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 16 Nov 2023 06:13:41 +0000 (07:13 +0100)
The "edid" feature has been added to vhost-user-gpu in commit
c06444261e20 ("contrib/vhost-user-gpu: implement get_edid feature"),
so waiting for "features: +virgl -edid" in the test does not work
anymore, it's "+edid" instead of "-edid" now!

While we're at it, move the expected string to the preceeding
exec_command_and_wait_for_pattern() instead (since waiting for
empty string here does not make too much sense).

Message-ID: <20231114203456.319093-1-thuth@redhat.com>
Reviewed-by: Antonio Caggiano <quic_acaggian@quicinc.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/avocado/virtio-gpu.py

index 89bfecc7157628dda179257fc1af31eed8997bb6..6091f614a4fc444168027a195a13e9e73875f858 100644 (file)
@@ -149,10 +149,8 @@ class VirtioGPUx86(QemuSystemTest):
             # TODO: probably fails because we are missing the VirGL features
             self.cancel("VirGL not enabled?")
         self.wait_for_console_pattern("as init process")
-        exec_command_and_wait_for_pattern(
-            self, "/usr/sbin/modprobe virtio_gpu", ""
-        )
-        self.wait_for_console_pattern("features: +virgl -edid")
+        exec_command_and_wait_for_pattern(self, "/usr/sbin/modprobe virtio_gpu",
+                                          "features: +virgl +edid")
         self.vm.shutdown()
         qemu_sock.close()
         vugp.terminate()