summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/buildperf')
-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):