[llvm] 5cbe227 - [lit] Sort testing summary output

David Zarzycki via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 20 04:54:41 PDT 2021


Author: David Zarzycki
Date: 2021-03-20T07:52:08-04:00
New Revision: 5cbe2279f723f1cca1a542d95e7d9760e4f52240

URL: https://github.com/llvm/llvm-project/commit/5cbe2279f723f1cca1a542d95e7d9760e4f52240
DIFF: https://github.com/llvm/llvm-project/commit/5cbe2279f723f1cca1a542d95e7d9760e4f52240.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/utils/lit/lit/main.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py
index c108c0015653..70a31110f796 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)
 


        


More information about the llvm-commits mailing list