]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
selftest: do not check for dri.pc in the headless test
authorAlexander Kanavin <alex.kanavin@gmail.com>
Mon, 27 Feb 2023 11:40:07 +0000 (12:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Feb 2023 11:55:22 +0000 (11:55 +0000)
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 <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/runtime_test.py

index 7d99c158e5d4a3e958a610bcbf3015bf08941380..13e8760a1684a7811415f3d3ebed7d6fbc0a5abd 100644 (file)
@@ -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: