From: Jouni Malinen Date: Sun, 31 Mar 2013 15:10:17 +0000 (+0300) Subject: tests: Use a more compact summary of test results X-Git-Tag: aosp-kk-from-upstream~377 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a8e4761dab2ae46e5a497b4e147675b9bd75e74;p=thirdparty%2Fhostap.git 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 --- 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()