From: Markus Lehtonen Date: Wed, 7 Sep 2016 07:28:46 +0000 (+0300) Subject: oeqa.buildperf: be sure to use the latest buildstats X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24356 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad495f0d0144728a0132c3d3c4d98c24ead4afd;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 7dfb2bff374..9700c059251 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)