Commit 7b213b8d authored by Ömer Sinan Ağacan's avatar Ömer Sinan Ağacan Committed by Marge Bot

Print test suite results ("unexpected failures" etc.) in sorted order

Fixes #16425
parent 8d18a873
......@@ -2214,7 +2214,7 @@ def printUnexpectedTests(file, testInfoss):
def printTestInfosSummary(file, testInfos):
maxDirLen = max(len(tr.directory) for tr in testInfos)
for result in testInfos:
for result in sorted(testInfos, key=lambda r: (r.testname.lower(), r.way, r.directory)):
directory = result.directory.ljust(maxDirLen)
file.write(' {directory} {r.testname} [{r.reason}] ({r.way})\n'.format(
r = result,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment