diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-09-07 10:28:46 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-08 00:32:43 +0100 |
commit | 98264a919148254885070fb5026f02648953ce5a (patch) | |
tree | 22bbb38abddd7217b32c021dbb9e67de35a2aa35 /meta/lib | |
parent | b673a562d1372633b88f94dd97cf3e598fcd197c (diff) | |
download | poky-98264a919148254885070fb5026f02648953ce5a.tar.gz |
oeqa.buildperf: be sure to use the latest buildstats
Be sure to take the latest buildstats if multiple buildstats are found.
(From OE-Core rev: bad495f0d0144728a0132c3d3c4d98c24ead4afd)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 7dfb2bff37..9700c05925 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py | |||
@@ -466,7 +466,7 @@ class BuildPerfTestCase(unittest.TestCase): | |||
466 | return bs_json | 466 | return bs_json |
467 | 467 | ||
468 | log.info('Saving buildstats in JSON format') | 468 | log.info('Saving buildstats in JSON format') |
469 | bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE']) | 469 | bs_dirs = sorted(os.listdir(self.bb_vars['BUILDSTATS_BASE'])) |
470 | if len(bs_dirs) > 1: | 470 | if len(bs_dirs) > 1: |
471 | log.warning("Multiple buildstats found for test %s, only " | 471 | log.warning("Multiple buildstats found for test %s, only " |
472 | "archiving the last one", self.name) | 472 | "archiving the last one", self.name) |