[llvm] [lit] Add --report-failures-only option for lit test reports (PR #115439)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 00:48:32 PST 2024


================
@@ -137,6 +137,10 @@ def main(builtin_params={}):
     print_results(discovered_tests, elapsed, opts)
 
     tests_for_report = selected_tests if opts.shard else discovered_tests
+    if opts.report_failures_only:
+        # Only report tests that failed
+        tests_for_report = [t for t in tests_for_report if t.isFailure()]
----------------
jh7370 wrote:

I've not dug into this, but does `t.isFailure` include `UNRESOLVED` responses too, i.e. tests that fail due to a bad format of the lit test file?

https://github.com/llvm/llvm-project/pull/115439


More information about the llvm-commits mailing list