mirror of
https://git.yoctoproject.org/poky-contrib
synced 2025-05-08 23:52:25 +08:00
oeqa/sdk/meson: Drop unreliable compiler test
The SDK Meson compiler test does not work in certain scenarios like meta-ide-support or NATIVELSBSTRING = "debian-11": ``` Traceback (most recent call last): File "/srv/pokybuild/yocto-worker/qemux86/build/meta/lib/oeqa/sdk/cases/meson.py", line 47, in test_epoxy self.assertNotEqual(data["build"]["c"]["exelist"], data["host"]["c"]["exelist"]) ~~~~~~~~~~~~~^^^^^ KeyError: 'c' ``` The root cause is elusive. The contents of `meson introspect --compilers` is no different from the working case of the standalone SDK with NATIVELSBSTRING = "universal". Notably, the "build" field is in fact empty, so it's almost as if the failures are correct and the success is wrong. The benefits of this part of the test are marginal, so fix it by removing it. (From OE-Core rev: 230eaf199ad7bb3792a8afd0208b6dbe670213b8) Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
This commit is contained in:
parent
a1c55b9bad
commit
00ecd5353b
@ -47,9 +47,6 @@ class MesonTest(OESDKTestCase):
|
||||
|
||||
log = self._run("meson setup --warnlevel 1 -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs))
|
||||
|
||||
# Check that the host (gcc) and build (cross-gcc) compilers are different
|
||||
data = json.loads(self._run("meson introspect --compilers {build}".format(**dirs)))
|
||||
self.assertNotEqual(data["build"]["c"]["exelist"], data["host"]["c"]["exelist"])
|
||||
# Check that the system architectures were set correctly
|
||||
data = json.loads(self._run("meson introspect --machines {build}".format(**dirs)))
|
||||
self.assertEqual(data["build"]["cpu"], self.td["SDK_ARCH"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user