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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-03-31 18:10:17 +03:00
parent 803edd1c09
commit 1a8e4761da

View file

@ -104,10 +104,12 @@ def main():
if not test_filter: if not test_filter:
reset_devs(dev, apdev) reset_devs(dev, apdev)
print "passed tests: " + str(passed) print
print "failed tests: " + str(failed)
if len(failed): if len(failed):
print "passed " + str(len(passed)) + " test case(s)"
print "failed tests: " + str(failed)
sys.exit(1) sys.exit(1)
print "passed all " + str(len(passed)) + " test case(s)"
if __name__ == "__main__": if __name__ == "__main__":
main() main()