diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 64c1a44733..de22850d4d 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py | |||
@@ -394,14 +394,15 @@ class BuildPerfTestCase(unittest.TestCase): | |||
394 | # Append to 'sizes' array for globalres log | 394 | # Append to 'sizes' array for globalres log |
395 | self.sizes.append(str(size)) | 395 | self.sizes.append(str(size)) |
396 | 396 | ||
397 | def save_buildstats(self): | 397 | def save_buildstats(self, label=None): |
398 | """Save buildstats""" | 398 | """Save buildstats""" |
399 | bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE']) | 399 | bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE']) |
400 | if len(bs_dirs) > 1: | 400 | if len(bs_dirs) > 1: |
401 | log.warning("Multiple buildstats found for test %s, only " | 401 | log.warning("Multiple buildstats found for test %s, only " |
402 | "archiving the last one", self.name) | 402 | "archiving the last one", self.name) |
403 | postfix = '-' + label if label else '' | ||
403 | shutil.move(os.path.join(self.bb_vars['BUILDSTATS_BASE'], bs_dirs[-1]), | 404 | shutil.move(os.path.join(self.bb_vars['BUILDSTATS_BASE'], bs_dirs[-1]), |
404 | os.path.join(self.out_dir, 'buildstats-' + self.name)) | 405 | os.path.join(self.out_dir, 'buildstats' + postfix)) |
405 | 406 | ||
406 | def rm_tmp(self): | 407 | def rm_tmp(self): |
407 | """Cleanup temporary/intermediate files and directories""" | 408 | """Cleanup temporary/intermediate files and directories""" |