From: Tom Hochstein Date: Fri, 3 Mar 2023 20:42:37 +0000 (-0600) Subject: oeqa/sdk: Improve Meson test X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1522 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54e9ee8a0c6c9fc89cbb743f0e4fc18607d503cf;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oeqa/sdk: Improve Meson test The meson wrapper setup command detection is broken in the case of an implicit setup command with an option with a space-separated argument, but the test was not detecting it since the case was not covered. Add the option `--warnlevel 1` to the meson command line to cover this case. Signed-off-by: Tom Hochstein Signed-off-by: Alexandre Belloni --- diff --git a/meta/lib/oeqa/sdk/cases/buildepoxy.py b/meta/lib/oeqa/sdk/cases/buildepoxy.py index ee515be1888..147ee3e0eee 100644 --- a/meta/lib/oeqa/sdk/cases/buildepoxy.py +++ b/meta/lib/oeqa/sdk/cases/buildepoxy.py @@ -35,7 +35,7 @@ class EpoxyTest(OESDKTestCase): self.assertTrue(os.path.isdir(dirs["source"])) os.makedirs(dirs["build"]) - log = self._run("meson -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs)) + log = self._run("meson --warnlevel 1 -Degl=no -Dglx=no -Dx11=false {build} {source}".format(**dirs)) # Check that Meson thinks we're doing a cross build and not a native self.assertIn("Build type: cross build", log) self._run("ninja -C {build} -v".format(**dirs))