summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/buildperf/base.py')
-rw-r--r--meta/lib/oeqa/buildperf/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index e4a79486f2..83439f1bdb 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -257,6 +257,7 @@ class BuildPerfTestCase(unittest.TestCase):
257 """Base class for build performance tests""" 257 """Base class for build performance tests"""
258 SYSRES = 'sysres' 258 SYSRES = 'sysres'
259 DISKUSAGE = 'diskusage' 259 DISKUSAGE = 'diskusage'
260 build_target = None
260 261
261 def __init__(self, *args, **kwargs): 262 def __init__(self, *args, **kwargs):
262 super(BuildPerfTestCase, self).__init__(*args, **kwargs) 263 super(BuildPerfTestCase, self).__init__(*args, **kwargs)
@@ -271,6 +272,12 @@ class BuildPerfTestCase(unittest.TestCase):
271 self.times = [] 272 self.times = []
272 self.sizes = [] 273 self.sizes = []
273 274
275 def setUp(self):
276 """Set-up fixture for each test"""
277 if self.build_target:
278 self.log_cmd_output(['bitbake', self.build_target,
279 '-c', 'fetchall'])
280
274 def run(self, *args, **kwargs): 281 def run(self, *args, **kwargs):
275 """Run test""" 282 """Run test"""
276 self.start_time = datetime.now() 283 self.start_time = datetime.now()