Merge pull request #24 from catseye/test-sets-exit-code

When running tests from command line, set exit code appropriately.
This commit is contained in:
Michael C. Martin 2014-05-24 07:19:14 -07:00
commit 33b9e9acac

View File

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