When running tests from command line, set exit code appropriately.

This commit is contained in:
Cat's Eye Technologies 2014-05-17 07:16:24 +01:00
parent bfbe169364
commit 1bd1424e33

View File

@ -460,5 +460,7 @@ if __name__ == '__main__':
if failed > 0:
print "\nTotal test case failures: %d" % failed
sys.exit(1)
else:
print "\nAll test cases succeeded"
sys.exit(0)