From c98c8b51446d64fc14adad9a3f383d33cc4c274a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Nov 2011 17:16:20 +1100 Subject: [PATCH] autotest: list failed tests --- Tools/autotest/autotest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index b3133a5c23..02bbec1506 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -141,6 +141,7 @@ def run_tests(steps): '''run a list of steps''' passed = True + failed = [] for step in steps: if skip_step(step): continue @@ -150,12 +151,16 @@ def run_tests(steps): if not run_step(step): print(">>>> FAILED STEP: %s at %s" % (step, time.asctime())) passed = False + failed.append(step) continue except Exception, msg: passed = False + failed.append(step) print(">>>> FAILED STEP: %s at %s (%s)" % (step, time.asctime(), msg)) continue print(">>>> PASSED STEP: %s at %s" % (step, time.asctime())) + if not passed: + print("FAILED %u tests: %s" % (len(failed), failed)) return passed try: