Skip to contentSkip to conversation

tests/functional/test_aarch64_virt: Fix vulkan test without egl-headless

PATCH In review Thomas Huth 3 participants 3 messages Feb 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional/test_aarch64_virt: Fix vulkan test without egl-headless

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")
---
 tests/functional/test_aarch64_virt.py | 2 ++
 1 file changed, 2 insertions(+)
tests/functional/test_aarch64_virt.py +2 -0
index 07c1c13638..95f5ce8b4c 100755
@@ -189,6 +189,8 @@ def test_aarch64_virt_with_gpu(self):
                 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
Signature · 1 line
2.48.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Thomas Huth

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")
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
Tested-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 9 lines · Thomas Huth

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")
---
 tests/functional/test_aarch64_virt.py | 2 ++
 1 file changed, 2 insertions(+)