Skip to content

Commit

Permalink
Hotfix: Detect more fail cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
LionsAd committed Dec 3, 2014
1 parent d75696e commit be33727
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runners/simpletest/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ cd "$DRUPAL_TI_DRUPAL_DIR"
{ php "$DRUPAL_TI_SIMPLETEST_FILE" --php $(which php) "${ARGS[@]}" || echo "1 fails"; } | tee /tmp/simpletest-result.txt

egrep -i "([1-9]+ fail)|(PHP Fatal error)|([1-9]+ exception)" /tmp/simpletest-result.txt && exit 1
egrep -i "^Fail" /tmp/simpletest-result.txt && exit 1
exit 0

0 comments on commit be33727

Please sign in to comment.