mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
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>
This commit is contained in:
@@ -236,8 +236,11 @@ INHERIT:remove = \"report-error\"
|
||||
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')
|
||||
self.assertFalse(os.path.isfile(os.path.join(lic_dir, 'selftest-ed/generic_GPL-3.0-or-later')))
|
||||
self.assertTrue(os.path.isfile(os.path.join(lic_dir, 'selftest-ed/generic_GPL-2.0-or-later')))
|
||||
arch = get_bb_var('SSTATE_PKGARCH')
|
||||
filename = os.path.join(lic_dir, arch, 'selftest-ed', 'generic_GPL-3.0-or-later')
|
||||
self.assertFalse(os.path.isfile(filename), msg="License file %s exists and shouldn't" % filename)
|
||||
filename = os.path.join(lic_dir, arch, 'selftest-ed', 'generic_GPL-2.0-or-later')
|
||||
self.assertTrue(os.path.isfile(filename), msg="License file %s doesn't exist" % filename)
|
||||
|
||||
def test_setscene_only(self):
|
||||
""" Bitbake option to restore from sstate only within a build (i.e. execute no real tasks, only setscene)"""
|
||||
|
||||
Reference in New Issue
Block a user