mirror of
https://github.com/michaelcmartin/Ophis.git
synced 2024-06-07 13:49:17 +00:00
When running tests from command line, set exit code appropriately.
This commit is contained in:
parent
bfbe169364
commit
1bd1424e33
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user