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-02-28 17:47:03 +0000
commit59d827889dd8b790a7c9323c69565d6bba3041bd (patch)
tree3aaabc7adaf024280a13cef5fee37a459abd75b9 /scripts
parent41093cb6c6d5edccebf41e62ed537779b1ee47bf (diff)
downloadopenembedded-core-contrib-59d827889dd8b790a7c9323c69565d6bba3041bd.tar.gz
openembedded-core-contrib-59d827889dd8b790a7c9323c69565d6bba3041bd.tar.bz2
openembedded-core-contrib-59d827889dd8b790a7c9323c69565d6bba3041bd.zip
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@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