aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-11-14 21:34:56 +0100
committerThomas Huth <thuth@redhat.com>2023-11-16 07:13:41 +0100
commitffab603bd513130472faf641326d1d387cbf6526 (patch)
tree60f2df9f5551684df8cd72065b9fe4b1d0999078 /tests
parentf0a663b4ced2bf315936c774c2b6ff398fce8905 (diff)
downloadqemu-ffab603bd513130472faf641326d1d387cbf6526.zip
qemu-ffab603bd513130472faf641326d1d387cbf6526.tar.gz
qemu-ffab603bd513130472faf641326d1d387cbf6526.tar.bz2
tests/avocado/virtio-gpu: Fix test_vhost_user_vga_virgl for edid support
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/avocado/virtio-gpu.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/avocado/virtio-gpu.py b/tests/avocado/virtio-gpu.py
index 89bfecc..6091f61 100644
--- a/tests/avocado/virtio-gpu.py
+++ b/tests/avocado/virtio-gpu.py
@@ -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()