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>
This commit is contained in:
parent
35ae939e41
commit
700ebe996a
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue