diff options
-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): # Append to 'sizes' array for globalres log self.sizes.append(str(size)) - def save_buildstats(self): + def save_buildstats(self, label=None): """Save buildstats""" 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) + postfix = '-' + label if label else '' shutil.move(os.path.join(self.bb_vars['BUILDSTATS_BASE'], bs_dirs[-1]), - os.path.join(self.out_dir, 'buildstats-' + self.name)) + os.path.join(self.out_dir, 'buildstats' + postfix)) def rm_tmp(self): """Cleanup temporary/intermediate files and directories""" |