Skip to contentSkip to conversation

tests/functional/test_aarch64_virt_gpu: Skip if "dbus" display isn't available

PATCH In review Thomas Huth 2 participants 2 messages Mar 25, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional/test_aarch64_virt_gpu: Skip if "dbus" display isn't available

From: Thomas Huth <[email protected]>

This test currently fails if the "dbus" display has not been compiled into the binary (which can happen when CFI has been enabled, for example). Check for the error message to skip the test in that case.

While we're at it, also make sure that this test is covered in the right section in the MAINTAINERS file.

---
 MAINTAINERS                               | 2 +-
 tests/functional/test_aarch64_virt_gpu.py | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
MAINTAINERS +1 -1
index 8f470a1c9b7..c1ccb0acd14 100644
@@ -1018,7 +1018,7 @@ S: Maintained
 F: hw/arm/virt*
 F: include/hw/arm/virt.h
 F: docs/system/arm/virt.rst
-F: tests/functional/test_aarch64_virt.py
+F: tests/functional/test_aarch64_virt*.py
 F: tests/functional/test_aarch64_tuxrun.py
 F: tests/functional/test_arm_tuxrun.py
 
tests/functional/test_aarch64_virt_gpu.py +2 -0
index 314d994a7aa..38447278579 100755
@@ -74,6 +74,8 @@ def _launch_virt_gpu(self, gpu_device):
                 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")
+            elif "'type' does not accept value 'dbus'" in excp.output:
+                self.skipTest("dbus display support is not available")
             else:
                 self.log.info("unhandled launch failure: %s", excp.output)
                 raise excp
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Thomas Huth

From: Thomas Huth <[email protected]>

This test currently fails if the "dbus" display has not been compiled into the binary (which can happen when CFI has been enabled, for example). Check for the error message to skip the test in that case.

While we're at it, also make sure that this test is covered in the right section in the MAINTAINERS file.

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro