From: David Zarzycki Date: Sat, 20 Mar 2021 11:52:08 +0000 (-0400) Subject: [lit] Sort testing summary output X-Git-Tag: llvmorg-14-init~11807 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5cbe2279f723f1cca1a542d95e7d9760e4f52240;p=platform%2Fupstream%2Fllvm.git [lit] Sort testing summary output As fallout from from the record-and-reorder work, people asked that the summary output be sorted to aid diffing. --- diff --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py index c108c00..70a3111 100755 --- a/llvm/utils/lit/lit/main.py +++ b/llvm/utils/lit/lit/main.py @@ -295,7 +295,7 @@ def print_results(tests, elapsed, opts): tests_by_code[test.result.code].append(test) for code in lit.Test.ResultCode.all_codes(): - print_group(tests_by_code[code], code, opts.shown_codes) + print_group(sorted(tests_by_code[code], key=lambda t: t.getFullName()), code, opts.shown_codes) print_summary(tests_by_code, opts.quiet, elapsed)