summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-02-15 09:30:13 -0500
committerBen Gamari <ben@smart-cactus.org>2020-02-15 09:30:13 -0500
commit785008c1235bd77ddb4d13f57f92b249752d8ea5 (patch)
tree60a234098226327438165ad9bcf8e5062e1049ea
parente77818de9cc9b2bc4b19dba4bc479f14078760b7 (diff)
downloadhaskell-785008c1235bd77ddb4d13f57f92b249752d8ea5.tar.gz
testsuite: Sort test names in expected change output
-rw-r--r--testsuite/driver/perf_notes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/driver/perf_notes.py b/testsuite/driver/perf_notes.py
index deb7c16ded..a468b7248c 100644
--- a/testsuite/driver/perf_notes.py
+++ b/testsuite/driver/perf_notes.py
@@ -250,11 +250,11 @@ def allow_changes_string(changes: List[Tuple[MetricChange, PerfStat]]
# Decreasing group.
if groupDec:
- msgs.append('Metric Decrease:' + nltab + nltab.join(groupDec))
+ msgs.append('Metric Decrease:' + nltab + nltab.join(sorted(groupDec)))
# Increasing group.
if groupInc:
- msgs.append('Metric Increase:' + nltab + nltab.join(groupInc))
+ msgs.append('Metric Increase:' + nltab + nltab.join(sorted(groupInc)))
# Mixed group.
if groupMix:
@@ -271,7 +271,7 @@ def allow_changes_string(changes: List[Tuple[MetricChange, PerfStat]]
for change_dir in [Dec, Inc]:
metric_to_tests = dir_to_metric_to_tests[change_dir]
for metric in sorted(metric_to_tests.keys()):
- tests = metric_to_tests[metric]
+ tests = sorted(metric_to_tests[metric])
msgs.append('Metric ' + change_dir.value + ' \'' + metric + '\':' + nltab + nltab.join(tests))
return '\n\n'.join(msgs)