diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/bbtests.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/bbtests.py | 7 |
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)""" |