diff options
Diffstat (limited to 'scripts/lib/resulttool/regression.py')
-rw-r--r-- | scripts/lib/resulttool/regression.py | 8 |
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 | ||