[oe-commits] [openembedded-core] 61/83: oeqa.buildperf: add method for saving buildstats

git at git.openembedded.org git at git.openembedded.org
Fri Jul 1 15:32:29 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 15b44a484ce408b0a1acfb907e2b12ebc6cce296
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Wed May 11 13:54:13 2016 +0300

    oeqa.buildperf: add method for saving buildstats
    
    Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/buildperf/base.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index e29e9d1..c54b70c 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'"""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list