runqemu (which the test also runs) already performs this check,
and does it better, as it additionally unsets a number of environment
variables that can confuse and misdirect host's pkg-config.

Signed-off-by: Alexander Kanavin <a...@linutronix.de>
---
 meta/lib/oeqa/selftest/cases/runtime_test.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py 
b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 7d99c158e5..13e8760a16 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -267,10 +267,6 @@ class TestImage(OESelftestTestCase):
                 self.fail("No render nodes found in /dev/dri: %s. %s" 
%(content, render_hint))
         except FileNotFoundError:
             self.fail("/dev/dri directory does not exist; no render nodes 
available on this machine. %s" %(render_hint))
-        try:
-            dripath = subprocess.check_output("PATH=/bin:/usr/bin:$PATH 
pkg-config --variable=dridriverdir dri", shell=True)
-        except subprocess.CalledProcessError as e:
-            self.fail("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.")
         qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 
'qemu-system-native')
         features = 'IMAGE_CLASSES += "testimage"\n'
         if 'opengl' not in qemu_distrofeatures:
-- 
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177790): 
https://lists.openembedded.org/g/openembedded-core/message/177790
Mute This Topic: https://lists.openembedded.org/mt/97263968/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to