summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf/test_basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/buildperf/test_basic.py')
-rw-r--r--meta/lib/oeqa/buildperf/test_basic.py5
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 @@
13import os 13import os
14import shutil 14import shutil
15 15
16import oe.path
16from oeqa.buildperf import BuildPerfTestCase 17from oeqa.buildperf import BuildPerfTestCase
17from oeqa.utils.commands import get_bb_vars 18from 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