diff options
author | Thomas Huth <thuth@redhat.com> | 2023-05-30 20:03:30 +0200 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-05-30 13:24:51 -0700 |
commit | 7f027ee0ce1f79302acd7330d796fb7a9e2529b1 (patch) | |
tree | 563e630c2f2546e533758748c13c74ccaf830b47 /tests/avocado | |
parent | f89f54d52bf8fdc6de1c90367f9bdd65e40fa382 (diff) | |
download | qemu-7f027ee0ce1f79302acd7330d796fb7a9e2529b1.zip qemu-7f027ee0ce1f79302acd7330d796fb7a9e2529b1.tar.gz qemu-7f027ee0ce1f79302acd7330d796fb7a9e2529b1.tar.bz2 |
tests/avocado/virtio-gpu: Cancel test if drm rendering is not available
The test_vhost_user_vga_virgl test currently fails on some CI
machines with:
qemu-system-x86_64: egl: no drm render node available
qemu-system-x86_64: egl: render node init failed
The other test in this file already checks whether there is
an error while starting QEMU - we should do the same for the
test_vhost_user_vga_virgl test, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230530180330.48722-1-thuth@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/avocado')
-rw-r--r-- | tests/avocado/virtio-gpu.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/avocado/virtio-gpu.py b/tests/avocado/virtio-gpu.py index e3b58fe..89bfecc 100644 --- a/tests/avocado/virtio-gpu.py +++ b/tests/avocado/virtio-gpu.py @@ -143,7 +143,11 @@ class VirtioGPUx86(QemuSystemTest): "-append", self.KERNEL_COMMAND_LINE, ) - self.vm.launch() + try: + self.vm.launch() + except: + # 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", "" |