summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorYeoh Ee Peng <ee.peng.yeoh@intel.com>2019-02-28 09:58:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-26 15:38:27 +0000
commit43823fbe1102d69e12c39eda060a73baadeea12c (patch)
treed4bfca5c7d636b39e2e6dd2a7ad7bf4fb45e6668 /scripts/lib
parentfa601378448a6eb1f025e0f58f119dda764516fc (diff)
downloadpoky-43823fbe1102d69e12c39eda060a73baadeea12c.tar.gz
resulttool/regression: Ensure regressoin results are sorted
Sorted regression results to provide friendly viewing of report. (From OE-Core rev: de222c3c9e3aa34e42e1ad6ba6cbb9e1a18ccd80) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/resulttool/regression.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/resulttool/regression.py b/scripts/lib/resulttool/regression.py
index ff77332fa9..bdf531dedf 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):
35 logger.error('Failed to retrieved base test case status: %s' % k) 35 logger.error('Failed to retrieved base test case status: %s' % k)
36 if result: 36 if result:
37 resultstring = "Regression: %s\n %s\n" % (base_name, target_name) 37 resultstring = "Regression: %s\n %s\n" % (base_name, target_name)
38 for k in result: 38 for k in sorted(result):
39 resultstring += ' %s: %s -> %s\n' % (k, result[k]['base'], result[k]['target']) 39 resultstring += ' %s: %s -> %s\n' % (k, result[k]['base'], result[k]['target'])
40 else: 40 else:
41 resultstring = "Match: %s\n %s" % (base_name, target_name) 41 resultstring = "Match: %s\n %s" % (base_name, target_name)
@@ -82,9 +82,9 @@ def regression_common(args, logger, base_results, target_results):
82 regressions.append(resstr) 82 regressions.append(resstr)
83 else: 83 else:
84 notfound.append("%s not found in target" % a) 84 notfound.append("%s not found in target" % a)
85 print("\n".join(matches)) 85 print("\n".join(sorted(matches)))
86 print("\n".join(regressions)) 86 print("\n".join(sorted(regressions)))
87 print("\n".join(notfound)) 87 print("\n".join(sorted(notfound)))
88 88
89 return 0 89 return 0
90 90