]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/sdk: Improve Meson test
authorTom Hochstein <tom.hochstein@nxp.com>
Fri, 3 Mar 2023 20:42:37 +0000 (14:42 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Mar 2023 09:52:14 +0000 (09:52 +0000)
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 <tom.hochstein@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oeqa/sdk/cases/buildepoxy.py

index ee515be188872db96ee43237cf7cfa4729465c31..147ee3e0eeeb24f0889ad675cab5d61ffc314891 100644 (file)
@@ -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))