diff mbox series

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

Message ID 20250205141140.97437-1-thuth@redhat.com (mailing list archive)
State New
Headers show
Series tests/functional/test_aarch64_virt: Fix vulkan test without egl-headless | expand

Commit Message

Thomas Huth Feb. 5, 2025, 2:11 p.m. UTC
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>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 tests/functional/test_aarch64_virt.py | 2 ++
 1 file changed, 2 insertions(+)

Comments

Alex Bennée Feb. 5, 2025, 2:43 p.m. UTC | #1
Thomas Huth <thuth@redhat.com> writes:

> 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>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Acked-by: Alex Bennée <alex.bennee@linaro.org>
Cornelia Huck Feb. 5, 2025, 3:53 p.m. UTC | #2
On Wed, Feb 05 2025, Thomas Huth <thuth@redhat.com> wrote:

> 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>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  tests/functional/test_aarch64_virt.py | 2 ++
>  1 file changed, 2 insertions(+)

Tested-by: Cornelia Huck <cohuck@redhat.com>
diff mbox series

Patch

diff --git a/tests/functional/test_aarch64_virt.py b/tests/functional/test_aarch64_virt.py
index 07c1c13638..95f5ce8b4c 100755
--- a/tests/functional/test_aarch64_virt.py
+++ b/tests/functional/test_aarch64_virt.py
@@ -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