summaryrefslogtreecommitdiffstats
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-26 23:39:06 +0000
commitc805f0f90a2d1b0de49978e6516a4e7f9b11aff4 (patch)
tree5111a90c7277b764cb2abfa21c7913b8774a0a2f
parent1f240d44b368a861238313cccfd33152db9e69d2 (diff)
downloadpoky-c805f0f90a2d1b0de49978e6516a4e7f9b11aff4.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: cfd9f549a0d5dd44f4c71bd077b5fd17d3683550) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit f0521f8a3ba7e15482756529ee7b0a95b3d53e7d) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 fe83b248f3..44f787ef12 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -265,7 +265,7 @@ class TestImage(OESelftestTestCase):
265 except FileNotFoundError: 265 except FileNotFoundError:
266 self.fail("/dev/dri directory does not exist; no render nodes available on this machine. %s" %(render_hint)) 266 self.fail("/dev/dri directory does not exist; no render nodes available on this machine. %s" %(render_hint))
267 try: 267 try:
268 dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True) 268 dripath = subprocess.check_output("PATH=/bin:/usr/bin:$PATH pkg-config --variable=dridriverdir dri", shell=True)
269 except subprocess.CalledProcessError as e: 269 except subprocess.CalledProcessError as e:
270 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.") 270 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.")
271 qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') 271 qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native')