]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
oeqa/selftest/bbtests: Tweak to use no-gplv3 inc file
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 4 Feb 2024 12:06:45 +0000 (12:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 5 Feb 2024 14:03:12 +0000 (14:03 +0000)
With changes to gcc-runtime around improving debugging, python modules
are needed but this pulls in bash which breaks the tests.

Add an exclusion to the no-gplv3 include file to handle this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/no-gplv3.inc
meta/lib/oeqa/selftest/cases/bbtests.py

index 48cff29ad4a18d7448a6cac950f6b9a19cfa257a..bb2e836f982a50ab304b1c80c81fba3e23f3dbc8 100644 (file)
@@ -22,3 +22,7 @@ CORE_IMAGE_EXTRA_INSTALL:pn-core-image-weston += "rpm"
 
 # matchbox-terminal depends on vte, which is gpl3
 CORE_IMAGE_BASE_INSTALL:remove:pn-core-image-weston = "matchbox-terminal"
+
+# Some python-tests use bash outside of ptest
+RDEPENDS:${PN}-tests:remove:class-target:pn-python3 = "${MLPREFIX}bash"
+INSANE_SKIP:${PN}-tests:pn-python3 = "file-rdeps"
index 0da59e0f581e2d01402f428ac4a70646db92e604..98e9f8166107995256321a33bbeba0a5f7736cf6 100644 (file)
@@ -232,7 +232,9 @@ INHERIT:remove = \"report-error\"
         self.assertLess(errorpos,continuepos, msg = "bitbake didn't pass do_fail_task. bitbake output: %s" % result.output)
 
     def test_non_gplv3(self):
-        self.write_config('INCOMPATIBLE_LICENSE = "GPL-3.0-or-later"')
+        self.write_config('''INCOMPATIBLE_LICENSE = "GPL-3.0-or-later"
+require conf/distro/include/no-gplv3.inc
+''')
         result = bitbake('selftest-ed', ignore_status=True)
         self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output))
         lic_dir = get_bb_var('LICENSE_DIRECTORY')