diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-05-11 13:54:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-01 16:22:46 +0100 |
commit | 6512d6956b23d7b596c3ae37e01c5b842da95690 (patch) | |
tree | 21a231ae8fd904c8eb08e9ddc134d14ca74549e6 | |
parent | 45c6a04a37b3dedb3eea7289c43978bddb8087c1 (diff) | |
download | poky-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>
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 5 |
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): | |||
172 | measurement['values'] = {'size': size} | 172 | measurement['values'] = {'size': size} |
173 | self.results['measurements'].append(measurement) | 173 | self.results['measurements'].append(measurement) |
174 | 174 | ||
175 | def save_buildstats(self): | ||
176 | """Save buildstats""" | ||
177 | shutil.move(self.bb_vars['BUILDSTATS_BASE'], | ||
178 | os.path.join(self.out_dir, 'buildstats-' + self.name)) | ||
179 | |||
175 | @staticmethod | 180 | @staticmethod |
176 | def force_rm(path): | 181 | def force_rm(path): |
177 | """Equivalent of 'rm -rf'""" | 182 | """Equivalent of 'rm -rf'""" |