Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Fixing exit code and output of test runner
Browse files Browse the repository at this point in the history
The test-runner will run all test suites and display their names anyway, then use an appropriate exit
code in case of failures.
Using the list of components to be tested (was using the skipped components list to be sure that the
exit code of the test runner were correct).
  • Loading branch information
Ocramius committed Apr 8, 2012
1 parent a5db374 commit b275c4f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
travisdir=$(dirname $(readlink /proc/$$/fd/255))
testdir="$travisdir/../tests"
testedcomponents=(`cat "$travisdir/tested-components"`)
result=0

for tested in "${testedcomponents[@]}"
do phpunit -c $testdir/phpunit.xml $testdir/$tested
do
echo "$tested:"
phpunit -c $testdir/phpunit.xml $testdir/$tested
let "result = $result || $?"
done

exit $result

0 comments on commit b275c4f

Please sign in to comment.