From 7a992aebacd0b2139ced2b03c3abf1ad97aaa862 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 17 Jan 2017 10:40:02 -0800 Subject: [PATCH] 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 --- scripts/sanitycheck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 6e12302bdd6..c34033e6928 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -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()