[oe-commits] [openembedded-core] 13/24: oeqa.buildperf: be sure to use the latest buildstats

git at git.openembedded.org git at git.openembedded.org
Wed Sep 7 23:37:56 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit bad495f0d0144728a0132c3d3c4d98c24ead4afd
Author: Markus Lehtonen <markus.lehtonen at linux.intel.com>
AuthorDate: Wed Sep 7 10:28:46 2016 +0300

    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 at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/lib/oeqa/buildperf/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 7dfb2bf..9700c05 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list