summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf/test_basic.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-12 14:35:54 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:35:44 +0100
commit9800b4d9ffda22466066ab1d301e4730e61726e0 (patch)
tree32893a6eab2fa5f88385d822b4409da8f5d51c42 /meta/lib/oeqa/buildperf/test_basic.py
parent51970d10d66be742df3c4d6d5755f5f426c7d221 (diff)
downloadpoky-9800b4d9ffda22466066ab1d301e4730e61726e0.tar.gz
oeqa.buildperf: use oe.path.remove()
Drop the self-baked force_rm() method. (From OE-Core rev: c86bf80abd87acb0da5860806822c64ec9dee089) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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