diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-02-27 12:40:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-27 13:27:37 +0000 |
commit | a87811f255c2154285dc835817608c5f0fb50bbc (patch) | |
tree | 25ae8ea75d1b184269448a79ee78388f2cf48d09 /meta/lib/oeqa | |
parent | 85ecfd1bfb6bf17ddaddf22398385f62eb7aaf96 (diff) | |
download | poky-a87811f255c2154285dc835817608c5f0fb50bbc.tar.gz |
selftest: do not check for dri.pc in the headless test
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.
(From OE-Core rev: ad179728a6978d929e2a876abe7e1cbd6b76a502)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 4 |
1 files changed, 0 insertions, 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): | |||
267 | self.fail("No render nodes found in /dev/dri: %s. %s" %(content, render_hint)) | 267 | self.fail("No render nodes found in /dev/dri: %s. %s" %(content, render_hint)) |
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: | ||
271 | dripath = subprocess.check_output("PATH=/bin:/usr/bin:$PATH pkg-config --variable=dridriverdir dri", shell=True) | ||
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.") | ||
274 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') | 270 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') |
275 | features = 'IMAGE_CLASSES += "testimage"\n' | 271 | features = 'IMAGE_CLASSES += "testimage"\n' |
276 | if 'opengl' not in qemu_distrofeatures: | 272 | if 'opengl' not in qemu_distrofeatures: |