Skip to content

Commit 7a992ae

Browse files
author
Andrew Boie
committed
sanitycheck: improve terse output
Values now spaced 4 apart since we commonly build thousands of tests. Percentage complete indicator added. Change-Id: Ia7454dc1e8cc0701dc74dc8a4f6e7a37706524e8 Signed-off-by: Andrew Boie <[email protected]>
1 parent 18ba153 commit 7a992ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/sanitycheck

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,8 +1751,9 @@ def terse_test_cb(instances, goals, goal):
17511751
log_info(goal.get_error_log())
17521752
info("")
17531753

1754-
sys.stdout.write("\rtotal complete: %s%3d/%3d%s failed: %s%3d%s" % (
1754+
sys.stdout.write("\rtotal complete: %s%4d/%4d%s %2d%% failed: %s%4d%s" % (
17551755
COLOR_GREEN, total_done, total_tests, COLOR_NORMAL,
1756+
int((float(total_done) / total_tests) * 100),
17561757
COLOR_RED if total_failed > 0 else COLOR_NORMAL,
17571758
total_failed, COLOR_NORMAL))
17581759
sys.stdout.flush()

0 commit comments

Comments
 (0)