Set the exit status to reflect pass/fail.
For Travis compatibility, we set the exit code to non-zero when any tests fail. Fixes #5.
This commit is contained in:
parent
98c23a2ab8
commit
b95b010c0d
0
tests/urchin exit code/.test/This test passes
Executable file
0
tests/urchin exit code/.test/This test passes
Executable file
6
tests/urchin exit code/non zero exit code when a test fails
Executable file
6
tests/urchin exit code/non zero exit code when a test fails
Executable file
@ -0,0 +1,6 @@
|
||||
../../urchin "../Counts should be kept of successes and failures./.test" > /dev/null
|
||||
case $? in
|
||||
0) exit 8;;
|
||||
*) exit 0;;
|
||||
esac
|
||||
|
1
tests/urchin exit code/zero exit code when tests all pass
Executable file
1
tests/urchin exit code/zero exit code when tests all pass
Executable file
@ -0,0 +1 @@
|
||||
../../urchin .test > /dev/null
|
Loading…
Reference in New Issue
Block a user