summaryrefslogtreecommitdiffstats
path: root/scripts
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:23 +0000
commitb6fa6f7e6c7305a9a664d39724ffb4076929a0a5 (patch)
treec8ce30b8b98ec0fa4327807d8c46446a6ea6ffc7 /scripts
parentdcb9804dff2e104fbb723f96cfbb879bfc8be163 (diff)
downloadpoky-b6fa6f7e6c7305a9a664d39724ffb4076929a0a5.tar.gz
poky-b6fa6f7e6c7305a9a664d39724ffb4076929a0a5.tar.bz2
poky-b6fa6f7e6c7305a9a664d39724ffb4076929a0a5.zip
resulttool/regression: Ensure regressoin results are sorted
Sorted regression results to provide friendly viewing of report. (From OE-Core rev: cbe96a6dcb95032c61393bac348141e15a6b6590) Signed-off-by: Yeoh Ee Peng <ee.peng.yeoh@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
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