Skip to content

Commit

Permalink
sanitycheck: improve terse output
Browse files Browse the repository at this point in the history
Values now spaced 4 apart since we commonly build thousands of
tests.

Percentage complete indicator added.

Change-Id: Ia7454dc1e8cc0701dc74dc8a4f6e7a37706524e8
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie committed Jan 18, 2017
1 parent 18ba153 commit 7a992ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -1751,8 +1751,9 @@ def terse_test_cb(instances, goals, goal):
log_info(goal.get_error_log())
info("")

sys.stdout.write("\rtotal complete: %s%3d/%3d%s failed: %s%3d%s" % (
sys.stdout.write("\rtotal complete: %s%4d/%4d%s %2d%% failed: %s%4d%s" % (
COLOR_GREEN, total_done, total_tests, COLOR_NORMAL,
int((float(total_done) / total_tests) * 100),
COLOR_RED if total_failed > 0 else COLOR_NORMAL,
total_failed, COLOR_NORMAL))
sys.stdout.flush()
Expand Down

0 comments on commit 7a992ae

Please sign in to comment.