[llvm] Reapply "[llvm][lit] Add option to run only the failed tests" (PR #171588)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 12 00:41:11 PST 2025
================
@@ -22,7 +22,7 @@ def record_test_times(tests, lit_config):
continue
if not t.suite.exec_root in times_by_suite:
times_by_suite[t.suite.exec_root] = read_test_times(t.suite)
- time = -t.result.elapsed if t.isFailure() else t.result.elapsed
+ time = min(-t.result.elapsed, -1.0e-6) if t.isFailure() else t.result.elapsed
----------------
Michael137 wrote:
Agreed
https://github.com/llvm/llvm-project/pull/171588
More information about the llvm-commits
mailing list