diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/archiver.py')
-rw-r--r-- | meta/lib/oeqa/selftest/archiver.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/archiver.py b/meta/lib/oeqa/selftest/archiver.py index 97b6f5b212..d7f215cbf6 100644 --- a/meta/lib/oeqa/selftest/archiver.py +++ b/meta/lib/oeqa/selftest/archiver.py | |||
@@ -1,5 +1,5 @@ | |||
1 | from oeqa.selftest.base import oeSelfTest | 1 | from oeqa.selftest.base import oeSelfTest |
2 | from oeqa.utils.commands import bitbake, get_bb_var | 2 | from oeqa.utils.commands import bitbake, get_bb_vars |
3 | from oeqa.utils.decorators import testcase | 3 | from oeqa.utils.decorators import testcase |
4 | import glob | 4 | import glob |
5 | import os | 5 | import os |
@@ -28,10 +28,11 @@ class Archiver(oeSelfTest): | |||
28 | features += 'COPYLEFT_PN_EXCLUDE = "%s"\n' % exclude_recipe | 28 | features += 'COPYLEFT_PN_EXCLUDE = "%s"\n' % exclude_recipe |
29 | self.write_config(features) | 29 | self.write_config(features) |
30 | 30 | ||
31 | shutil.rmtree(get_bb_var('TMPDIR')) | 31 | bitbake('-c clean %s %s' % (include_recipe, exclude_recipe)) |
32 | bitbake("%s %s" % (include_recipe, exclude_recipe)) | 32 | bitbake("%s %s" % (include_recipe, exclude_recipe)) |
33 | 33 | ||
34 | src_path = os.path.join(get_bb_var('DEPLOY_DIR_SRC'), get_bb_var('TARGET_SYS')) | 34 | bb_vars = get_bb_vars(['DEPLOY_DIR_SRC', 'TARGET_SYS']) |
35 | src_path = os.path.join(bb_vars['DEPLOY_DIR_SRC'], bb_vars['TARGET_SYS']) | ||
35 | 36 | ||
36 | # Check that include_recipe was included | 37 | # Check that include_recipe was included |
37 | included_present = len(glob.glob(src_path + '/%s-*' % include_recipe)) | 38 | included_present = len(glob.glob(src_path + '/%s-*' % include_recipe)) |