summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/runtime_test.py
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-01-12 16:41:35 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-13 17:32:46 +0000
commitc7cbde198b92973e325c66247ef1d514a5e31eeb (patch)
tree7973a2d7edc72bea1d2bc820d6b9f0e64f304952 /meta/lib/oeqa/selftest/cases/runtime_test.py
parentcb96e0e3ecbf841e3f39845cb8800c917f4d33db (diff)
downloadpoky-c7cbde198b92973e325c66247ef1d514a5e31eeb.tar.gz
selftest/virgl: use pkg-config from the host
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. (From OE-Core rev: f0521f8a3ba7e15482756529ee7b0a95b3d53e7d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/runtime_test.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index ae79724956..7d99c158e5 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -268,7 +268,7 @@ class TestImage(OESelftestTestCase):
268 except FileNotFoundError: 268 except FileNotFoundError:
269 self.fail("/dev/dri directory does not exist; no render nodes available on this machine. %s" %(render_hint)) 269 self.fail("/dev/dri directory does not exist; no render nodes available on this machine. %s" %(render_hint))
270 try: 270 try:
271 dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True) 271 dripath = subprocess.check_output("PATH=/bin:/usr/bin:$PATH pkg-config --variable=dridriverdir dri", shell=True)
272 except subprocess.CalledProcessError as e: 272 except subprocess.CalledProcessError as e:
273 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.") 273 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.")
274 qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') 274 qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')