[oe-commits] [openembedded-core] 10/13: resulttool/regression: Ensure regressoin results are sorted

git at git.openembedded.org git at git.openembedded.org
Sun Mar 24 16:54:52 UTC 2019


This is an automated email from the git hooks/post-receive script.

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

commit cbe96a6dcb95032c61393bac348141e15a6b6590
Author: Yeoh Ee Peng <ee.peng.yeoh at intel.com>
AuthorDate: Thu Feb 28 09:58:57 2019 +0800

    resulttool/regression: Ensure regressoin results are sorted
    
    Sorted regression results to provide friendly viewing of report.
    
    Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/resulttool/regression.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/lib/resulttool/regression.py b/scripts/lib/resulttool/regression.py
index ff77332..bdf531d 100644
--- a/scripts/lib/resulttool/regression.py
+++ b/scripts/lib/resulttool/regression.py
@@ -35,7 +35,7 @@ def compare_result(logger, base_name, target_name, base_result, target_result):
                 logger.error('Failed to retrieved base test case status: %s' % k)
     if result:
         resultstring = "Regression: %s\n            %s\n" % (base_name, target_name)
-        for k in result:
+        for k in sorted(result):
             resultstring += '    %s: %s -> %s\n' % (k, result[k]['base'], result[k]['target'])
     else:
         resultstring = "Match: %s\n       %s" % (base_name, target_name)
@@ -82,9 +82,9 @@ def regression_common(args, logger, base_results, target_results):
                         regressions.append(resstr)
         else:
             notfound.append("%s not found in target" % a)
-    print("\n".join(matches))
-    print("\n".join(regressions))
-    print("\n".join(notfound))
+    print("\n".join(sorted(matches)))
+    print("\n".join(sorted(regressions)))
+    print("\n".join(sorted(notfound)))
 
     return 0
 

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


More information about the Openembedded-commits mailing list