summaryrefslogtreecommitdiffstats
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:41 +0100
commit700ebe996a1ad5c82e55228d04a7b5a0f2d1f0c7 (patch)
treede05494ff09f96819474021dd20bde2b1dd02d22 /meta/lib
parent35ae939e41157f6b1ba1ee4898550d049fc47afa (diff)
downloadpoky-700ebe996a1ad5c82e55228d04a7b5a0f2d1f0c7.tar.gz
oeqa.buildperf: strip date from buildstats directory path
Archive buildstats in a directory like 'buildstats' instead of something like 'buildstats/20160513120000'. (From OE-Core rev: 95138cdc70bb7f9b7ab74e1d83305f009790dccc) 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):
395 395
396 def save_buildstats(self): 396 def save_buildstats(self):
397 """Save buildstats""" 397 """Save buildstats"""
398 shutil.move(self.bb_vars['BUILDSTATS_BASE'], 398 bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE'])
399 if len(bs_dirs) > 1:
400 log.warning("Multiple buildstats found for test %s, only "
401 "archiving the last one", self.name)
402 shutil.move(os.path.join(self.bb_vars['BUILDSTATS_BASE'], bs_dirs[-1]),
399 os.path.join(self.out_dir, 'buildstats-' + self.name)) 403 os.path.join(self.out_dir, 'buildstats-' + self.name))
400 404
401 def rm_tmp(self): 405 def rm_tmp(self):