[oe-commits] [openembedded-core] 17/106: oeqa.buildperf: strip date from buildstats directory path
git at git.openembedded.org
git at git.openembedded.org
Thu Sep 1 16:49:56 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit d6d2255b61a250866fe8a6f10441742df37947ac
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