]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/functional/test_aarch64_virt: Fix vulkan test without egl-headless
authorThomas Huth <thuth@redhat.com>
Wed, 5 Feb 2025 14:11:40 +0000 (15:11 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 10 Feb 2025 18:54:08 +0000 (19:54 +0100)
The vulkan test currently fails if the egl-headless device is not
available. Let's add a proper check to skip the test in this case.

Fixes: 3d30f882ce ("tests/functional: extend test_aarch64_virt with vulkan test")
Reported-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Cornelia Huck <cohuck@redhat.com>
Message-ID: <20250205141140.97437-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/test_aarch64_virt.py

index 07c1c136388d496a918b51c619731b1e44fd7404..95f5ce8b4c021dfabc74068416a7eb81c21bbd64 100755 (executable)
@@ -189,6 +189,8 @@ class Aarch64VirtMachine(QemuSystemTest):
                 self.skipTest("No venus support for virtio-gpu")
             elif "egl: no drm render node available" in excp.output:
                 self.skipTest("Can't access host DRM render node")
+            elif "'type' does not accept value 'egl-headless'" in excp.output:
+                self.skipTest("egl-headless support is not available")
             else:
                 self.log.info(f"unhandled launch failure: {excp.output}")
                 raise excp