summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/bbtests.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-19 22:00:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-20 23:51:11 +0100
commita83a16b7939e066b6686b62ae7ec66f12ef34f1e (patch)
treeb0cdc789c2742b3a7afafb6730cbb142b592b800 /meta/lib/oeqa/selftest/cases/bbtests.py
parent7ebbd68f0fb237f511cd2629ef9f6fc4d8488736 (diff)
downloadpoky-a83a16b7939e066b6686b62ae7ec66f12ef34f1e.tar.gz
oeqa/selftest/bbtests: Improve and update test_non_gplv3
This test no longer worked with fixes to avoid overlapping license files in deploy. Fix the test but also improve the logging messages so we don't get "False is not True" messages upon failure. (From OE-Core rev: 2fc7714dab5cce585bce4d6c4e8ffbefce2a709b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/bbtests.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/bbtests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/bbtests.py b/meta/lib/oeqa/selftest/cases/bbtests.py
index 31aa5680f0..d242352ea2 100644
--- a/meta/lib/oeqa/selftest/cases/bbtests.py
+++ b/meta/lib/oeqa/selftest/cases/bbtests.py
@@ -236,8 +236,11 @@ INHERIT:remove = \"report-error\"
236 result = bitbake('selftest-ed', ignore_status=True) 236 result = bitbake('selftest-ed', ignore_status=True)
237 self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output)) 237 self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output))
238 lic_dir = get_bb_var('LICENSE_DIRECTORY') 238 lic_dir = get_bb_var('LICENSE_DIRECTORY')
239 self.assertFalse(os.path.isfile(os.path.join(lic_dir, 'selftest-ed/generic_GPL-3.0-or-later'))) 239 arch = get_bb_var('SSTATE_PKGARCH')
240 self.assertTrue(os.path.isfile(os.path.join(lic_dir, 'selftest-ed/generic_GPL-2.0-or-later'))) 240 filename = os.path.join(lic_dir, arch, 'selftest-ed', 'generic_GPL-3.0-or-later')
241 self.assertFalse(os.path.isfile(filename), msg="License file %s exists and shouldn't" % filename)
242 filename = os.path.join(lic_dir, arch, 'selftest-ed', 'generic_GPL-2.0-or-later')
243 self.assertTrue(os.path.isfile(filename), msg="License file %s doesn't exist" % filename)
241 244
242 def test_setscene_only(self): 245 def test_setscene_only(self):
243 """ Bitbake option to restore from sstate only within a build (i.e. execute no real tasks, only setscene)""" 246 """ Bitbake option to restore from sstate only within a build (i.e. execute no real tasks, only setscene)"""