From faedb8b0ef868bee9858d0ee42f5005c2b2b81b4 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 8 Sep 2007 00:26:18 +0000 Subject: [PATCH] Print test results summary at the end [SVN r39166] --- v2/test/test_all.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v2/test/test_all.py b/v2/test/test_all.py index b110eda4b..43c52f55b 100644 --- a/v2/test/test_all.py +++ b/v2/test/test_all.py @@ -37,6 +37,7 @@ def run_tests(critical_tests, other_tests): invocation_dir = os.getcwd() + pass_count = 0 failures_count = 0 for i in all_tests: print ("%-25s : " %(i)), @@ -56,11 +57,18 @@ def run_tests(critical_tests, other_tests): continue print "PASSED" BoostBuild.flush_annotations(); + pass_count = pass_count + 1 sys.stdout.flush() # makes testing under emacs more entertaining. # Erase the file on success if failures_count == 0: open('test_results.txt', 'w') + + print """ + === Test summary === + PASS: %d + FAIL: %d + """ % (pass_count, failures_count) def last_failed_test():