summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/buildperf/base.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-09-07 10:28:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-08 00:31:43 +0100
commitbad495f0d0144728a0132c3d3c4d98c24ead4afd (patch)
tree92164976cba117411633b6b8f717ab6509b816e8 /meta/lib/oeqa/buildperf/base.py
parentd941d66d714545eae589115db48f1243399711f2 (diff)
downloadopenembedded-core-bad495f0d0144728a0132c3d3c4d98c24ead4afd.tar.gz
oeqa.buildperf: be sure to use the latest buildstats
Be sure to take the latest buildstats if multiple buildstats are found. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/buildperf/base.py')
-rw-r--r--meta/lib/oeqa/buildperf/base.py2
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):
return bs_json
log.info('Saving buildstats in JSON format')
- bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE'])
+ bs_dirs = sorted(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)