From 1a8e4761dab2ae46e5a497b4e147675b9bd75e74 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 31 Mar 2013 18:10:17 +0300 Subject: [PATCH] tests: Use a more compact summary of test results Do not print the potentially long list of passed test cases. In case of failure(s), make sure the failed test list is the last item in the report. Signed-hostap: Jouni Malinen --- tests/hwsim/run-tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py index fbc265546..80128e082 100755 --- a/tests/hwsim/run-tests.py +++ b/tests/hwsim/run-tests.py @@ -104,10 +104,12 @@ def main(): if not test_filter: reset_devs(dev, apdev) - print "passed tests: " + str(passed) - print "failed tests: " + str(failed) + print if len(failed): + print "passed " + str(len(passed)) + " test case(s)" + print "failed tests: " + str(failed) sys.exit(1) + print "passed all " + str(len(passed)) + " test case(s)" if __name__ == "__main__": main()