aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-05-11 13:54:13 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:08:49 +0100
commit15b44a484ce408b0a1acfb907e2b12ebc6cce296 (patch)
tree08611978ec74b6707e5db703c0aaf3513bc0b798
parent85cdc240e75d481e93238fbf75f8b8431da05f19 (diff)
downloadopenembedded-core-contrib-15b44a484ce408b0a1acfb907e2b12ebc6cce296.tar.gz
oeqa.buildperf: add method for saving buildstats
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/lib/oeqa/buildperf/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index e29e9d1579..c54b70cb11 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -172,6 +172,11 @@ class BuildPerfTest(object):
measurement['values'] = {'size': size}
self.results['measurements'].append(measurement)
+ def save_buildstats(self):
+ """Save buildstats"""
+ shutil.move(self.bb_vars['BUILDSTATS_BASE'],
+ os.path.join(self.out_dir, 'buildstats-' + self.name))
+
@staticmethod
def force_rm(path):
"""Equivalent of 'rm -rf'"""