Skip to content

Commit 7cd5da4

Browse files
committed
run all of the tests and accumulate errors
1 parent 83eecfb commit 7cd5da4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/run_tests

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ unset VIRTUALENVWRAPPER_VIRTUALENV_ARGS
4444

4545
# Run the test scripts with a little formatting around them to make it
4646
# easier to find where each script output starts.
47+
RC=0
4748
for test_script in $scripts
4849
do
4950

@@ -66,9 +67,11 @@ do
6667
echo
6768
SHUNIT_PARENT="$test_script"
6869
export SHUNIT_PARENT
69-
$SHELL $test_shell_opts $test_script || exit 1
70+
if ! $SHELL $test_shell_opts $test_script; then
71+
RC=1
72+
fi
7073
echo
7174

7275
done
7376

74-
exit 0
77+
exit $RC

0 commit comments

Comments
 (0)