[hardknott,14/14] runtime_test: skip virgl test on fedora 34

Message ID 4c3d0463b413a0c070aa34d50e60bf184c726512.1645106980.git.anuj.mittal@intel.com
State Accepted, archived
Commit 4c3d0463b413a0c070aa34d50e60bf184c726512
Headers show
Series [hardknott,01/14] sdk: fix search for dynamic loader | expand

Commit Message

Mittal, Anuj Feb. 17, 2022, 2:18 p.m. UTC
The gtk and headless tests fail on Fedora 34 because of the host libdrm
version so skip them.

| runqemu - ERROR - Failed to run qemu: MESA-LOADER: failed to open iris: /lib64/libdrm_nouveau.so.2: undefined symbol: drmCloseBufferHandle (search paths /usr/lib64/dri)
| failed to load driver: iris
| MESA-LOADER: failed to open kms_swrast: /lib64/libdrm_nouveau.so.2: undefined symbol: drmCloseBufferHandle (search paths /usr/lib64/dri)
| failed to load driver: kms_swrast
| MESA-LOADER: failed to open swrast: /lib64/libdrm_nouveau.so.2: undefined symbol: drmCloseBufferHandle (search paths /usr/lib64/dri)
| failed to load swrast driver
| qemu-system-x86_64: egl: gbm_create_device failed
| qemu-system-x86_64: egl: render node init failed

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 2148e84ff3..f9649339e5 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -232,6 +232,9 @@  class TestImage(OESelftestTestCase):
             dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True)
         except subprocess.CalledProcessError as e:
             self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.")
+        distro = oe.lsb.distro_identifier()
+        if distro and distro == 'fedora-34':
+            self.skipTest('virgl isn\'t working with Fedora 34')
         qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')
         features = 'INHERIT += "testimage"\n'
         if 'opengl' not in qemu_distrofeatures: