]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
selftest/virgl: use pkg-config from the host
authorAlexander Kanavin <alex.kanavin@gmail.com>
Thu, 12 Jan 2023 15:41:35 +0000 (16:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jan 2023 17:31:46 +0000 (17:31 +0000)
The check needs to report dri location on the host machine,
so pkg-config binary needs to be capable of finding the needed
dri.pc file on the host, and therefore needs to know where
host .pc files are located.

This may not be the case when using pkg-config from buildtools,
so this forces usage of host pkg-config.

runqemu already does the same PATH tweak, so this simply brings
the two in sync.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/selftest/cases/runtime_test.py

index ae797249562fc7b4ff7e488fd7fcff5e7eddb687..7d99c158e5d4a3e958a610bcbf3015bf08941380 100644 (file)
@@ -268,7 +268,7 @@ class TestImage(OESelftestTestCase):
         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("pkg-config --variable=dridriverdir dri", shell=True)
+            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')