diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2017-01-10 10:24:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-16 18:01:54 +0000 |
commit | ae388652b8de0665390560e78429e10119d4d537 (patch) | |
tree | 54f44343c28f3ca5fb99a08c5d098c8fd4e95578 /meta | |
parent | c6e7db1446a4c94caf3df0b8a9758888d1b8b7f9 (diff) | |
download | openembedded-core-ae388652b8de0665390560e78429e10119d4d537.tar.gz openembedded-core-ae388652b8de0665390560e78429e10119d4d537.tar.bz2 openembedded-core-ae388652b8de0665390560e78429e10119d4d537.zip |
selftest/bbtests.py: fix path assumption for LICENSE_DIRECTORY
Fix path assumption for LICENSE_DIRECTORY, otherwise, the test case
may fail even if the functionality it tests works well.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/bbtests.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py index 08cc4012fc..c4e50cbfa0 100644 --- a/meta/lib/oeqa/selftest/bbtests.py +++ b/meta/lib/oeqa/selftest/bbtests.py @@ -235,8 +235,9 @@ INHERIT_remove = \"report-error\" self.addCleanup(ftools.remove_from_file, conf ,data) result = bitbake('readline', ignore_status=True) self.assertEqual(result.status, 0, "Bitbake failed, exit code %s, output %s" % (result.status, result.output)) - self.assertFalse(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv3'))) - self.assertTrue(os.path.isfile(os.path.join(self.builddir, 'tmp/deploy/licenses/readline/generic_GPLv2'))) + lic_dir = get_bb_var('LICENSE_DIRECTORY') + self.assertFalse(os.path.isfile(os.path.join(lic_dir, 'readline/generic_GPLv3'))) + self.assertTrue(os.path.isfile(os.path.join(lic_dir, 'readline/generic_GPLv2'))) @testcase(1422) def test_setscene_only(self): |