aboutsummaryrefslogtreecommitdiffstats
path: root/meta
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:22:46 +0100
commit6512d6956b23d7b596c3ae37e01c5b842da95690 (patch)
tree21a231ae8fd904c8eb08e9ddc134d14ca74549e6 /meta
parent45c6a04a37b3dedb3eea7289c43978bddb8087c1 (diff)
downloadopenembedded-core-contrib-6512d6956b23d7b596c3ae37e01c5b842da95690.tar.gz
oeqa.buildperf: add method for saving buildstats
(From OE-Core rev: 15b44a484ce408b0a1acfb907e2b12ebc6cce296) 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')
-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'"""