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

Rakshit Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 09:59:22 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()]
----------------
rpatel321 wrote:

Yes, `t.isFailure` includes the following: `UNRESOLVED, TIMEOUT, FAIL, XPASS`.

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


More information about the llvm-commits mailing list