[oe-commits] [openembedded-core] 57/86: oeqa.buildperf: rename buildstats directories

git at git.openembedded.org git at git.openembedded.org
Tue Aug 30 16:19:04 UTC 2016


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

commit 3f659ff3157e5f809e1768e4dbd10c385d29eff9
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Mon Aug 29 22:48:25 2016 +0300

    oeqa.buildperf: rename buildstats directories
    
    Change directory name from 'buildstats-<test_name>' to just
    'buildstats'. However, this patch adds the possibility to label
    buildstats directory name with a postfix which makes it possible to save
    multiple buildstats per test, for example.
    
    Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/buildperf/base.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 64c1a44..de22850 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -394,14 +394,15 @@ class BuildPerfTestCase(unittest.TestCase):
         # Append to 'sizes' array for globalres log
         self.sizes.append(str(size))
 
-    def save_buildstats(self):
+    def save_buildstats(self, label=None):
         """Save buildstats"""
         bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE'])
         if len(bs_dirs) > 1:
             log.warning("Multiple buildstats found for test %s, only "
                         "archiving the last one", self.name)
+        postfix = '-' + label if label else ''
         shutil.move(os.path.join(self.bb_vars['BUILDSTATS_BASE'], bs_dirs[-1]),
-                    os.path.join(self.out_dir, 'buildstats-' + self.name))
+                    os.path.join(self.out_dir, 'buildstats' + postfix))
 
     def rm_tmp(self):
         """Cleanup temporary/intermediate files and directories"""

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


More information about the Openembedded-commits mailing list