summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-29 22:48:23 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-03 09:58:30 +0100
commit95138cdc70bb7f9b7ab74e1d83305f009790dccc (patch)
tree16d7178ce289f8c52c0ff558af31eaaf1265fab2 /meta/lib
parent4909fae1a6d1d068b33252088b41b8d82d1a836c (diff)
downloadopenembedded-core-95138cdc70bb7f9b7ab74e1d83305f009790dccc.tar.gz
openembedded-core-95138cdc70bb7f9b7ab74e1d83305f009790dccc.tar.bz2
openembedded-core-95138cdc70bb7f9b7ab74e1d83305f009790dccc.zip
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/buildperf/base.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index eed026681b..4918e793a1 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):