[oe-commits] [openembedded-core] 43/55: oeqa.buildperf: strip date from buildstats directory path
git at git.openembedded.org
git at git.openembedded.org
Sat Sep 3 09:00:23 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 95138cdc70bb7f9b7ab74e1d83305f009790dccc
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Mon Aug 29 22:48:23 2016 +0300
oeqa.buildperf: strip date from buildstats directory path
Archive buildstats in a directory like 'buildstats' instead of something
like 'buildstats/20160513120000'.
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index eed0266..4918e79 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -395,7 +395,11 @@ class BuildPerfTestCase(unittest.TestCase):
def save_buildstats(self):
"""Save buildstats"""
- shutil.move(self.bb_vars['BUILDSTATS_BASE'],
+ 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)
+ shutil.move(os.path.join(self.bb_vars['BUILDSTATS_BASE'], bs_dirs[-1]),
os.path.join(self.out_dir, 'buildstats-' + self.name))
def rm_tmp(self):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list