[llvm] [LIT] Print discovered tests and percentages (PR #66057)
Thomas Preud'homme via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 01:46:09 PDT 2023
================
@@ -351,4 +353,4 @@ def print_summary(tests_by_code, quiet, elapsed):
for (label, count) in groups:
label = label.ljust(max_label_len)
count = str(count).rjust(max_count_len)
- print(" %s: %s" % (label, count))
+ print(" %s: %s (%.2f%%)" % (label, count, float(count) / total_tests * 100))
----------------
RoboTux wrote:
Wishlist: this can probably also be converted to a f-string or if not to use .format() while you are at it. Since this pre-existing I don't mind if you leave it untouched.
https://github.com/llvm/llvm-project/pull/66057
More information about the llvm-commits
mailing list