[PATCH] D141622: [lit] don't skip test times when executions are instantaneous

Ashay Rane via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 16:47:02 PST 2023


ashay-github updated this revision to Diff 488811.
ashay-github added a comment.

Rebased with main branch.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141622/new/

https://reviews.llvm.org/D141622

Files:
  llvm/utils/lit/lit/TestTimes.py


Index: llvm/utils/lit/lit/TestTimes.py
===================================================================
--- llvm/utils/lit/lit/TestTimes.py
+++ llvm/utils/lit/lit/TestTimes.py
@@ -19,7 +19,7 @@
     times_by_suite = {}
     for t in tests:
         assert t.suite.test_times is None
-        if not t.result.elapsed:
+        if t.result.elapsed is None:
             continue
         if not t.suite.exec_root in times_by_suite:
             times_by_suite[t.suite.exec_root] = read_test_times(t.suite)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141622.488811.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/7750c4c6/attachment.bin>


More information about the llvm-commits mailing list