projects
/
interaspect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12e9049
)
Exit with error code when test case fails.
author
Justin Seyster
<jseyster@cs.sunysb.edu>
Thu, 2 Sep 2010 20:45:01 +0000
(16:45 -0400)
committer
Justin Seyster
<jseyster@cs.sunysb.edu>
Thu, 2 Sep 2010 20:45:01 +0000
(16:45 -0400)
Fixed typo in failure message.
test/run-testcase.py
patch
|
blob
|
history
diff --git
a/test/run-testcase.py
b/test/run-testcase.py
index 80a05a7a998d6e7a157c832ce39495043ba61f4c..da54918e22b6db6c7f039d4bf32ae0eef9f1909e 100755
(executable)
--- a/
test/run-testcase.py
+++ b/
test/run-testcase.py
@@
-511,6
+511,8
@@
if __name__ == '__main__':
if passed == len(dh.run_list):
print "All runs passed!"
+ sys.exit(0) # Success
else:
- print ("Testcase failed. {0:d} out of {
0
:d} runs passed."
+ print ("Testcase failed. {0:d} out of {
1
:d} runs passed."
.format(passed, len(dh.run_list)))
+ sys.exit(1) # :-(