diff options
Diffstat (limited to 'meta/lib/oeqa/buildperf/test_basic.py')
-rw-r--r-- | meta/lib/oeqa/buildperf/test_basic.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/buildperf/test_basic.py b/meta/lib/oeqa/buildperf/test_basic.py index b8bec6d6f2..9310f3d86a 100644 --- a/meta/lib/oeqa/buildperf/test_basic.py +++ b/meta/lib/oeqa/buildperf/test_basic.py | |||
@@ -13,6 +13,7 @@ | |||
13 | import os | 13 | import os |
14 | import shutil | 14 | import shutil |
15 | 15 | ||
16 | import oe.path | ||
16 | from oeqa.buildperf import BuildPerfTestCase | 17 | from oeqa.buildperf import BuildPerfTestCase |
17 | from oeqa.utils.commands import get_bb_vars | 18 | from oeqa.utils.commands import get_bb_vars |
18 | 19 | ||
@@ -85,11 +86,11 @@ class Test3(BuildPerfTestCase): | |||
85 | """Parsing time metrics (bitbake -p)""" | 86 | """Parsing time metrics (bitbake -p)""" |
86 | # Drop all caches and parse | 87 | # Drop all caches and parse |
87 | self.rm_cache() | 88 | self.rm_cache() |
88 | self.force_rm(os.path.join(self.bb_vars['TMPDIR'], 'cache')) | 89 | oe.path.remove(os.path.join(self.bb_vars['TMPDIR'], 'cache'), True) |
89 | self.measure_cmd_resources(['bitbake', '-p'], 'parse_1', | 90 | self.measure_cmd_resources(['bitbake', '-p'], 'parse_1', |
90 | 'bitbake -p (no caches)') | 91 | 'bitbake -p (no caches)') |
91 | # Drop tmp/cache | 92 | # Drop tmp/cache |
92 | self.force_rm(os.path.join(self.bb_vars['TMPDIR'], 'cache')) | 93 | oe.path.remove(os.path.join(self.bb_vars['TMPDIR'], 'cache'), True) |
93 | self.measure_cmd_resources(['bitbake', '-p'], 'parse_2', | 94 | self.measure_cmd_resources(['bitbake', '-p'], 'parse_2', |
94 | 'bitbake -p (no tmp/cache)') | 95 | 'bitbake -p (no tmp/cache)') |
95 | # Parse with fully cached data | 96 | # Parse with fully cached data |