diff --git a/tests/travis/start_behat_tests.sh b/tests/travis/start_behat_tests.sh index 24e0837b0c7d..032fe0c26304 100644 --- a/tests/travis/start_behat_tests.sh +++ b/tests/travis/start_behat_tests.sh @@ -25,7 +25,7 @@ else lib/composer/bin/behat -c tests/ui/config/behat.yml fi -if [ "$?" == "0" ] +if [ $? -eq 0 ] then PASSED=true else @@ -39,3 +39,10 @@ then printf "\n${RED}SAUCELABS RESULTS:${BLUE} https://saucelabs.com/jobs/$SAUCELABS_SESSIONID\n${NC}" fi + +if [ "$PASSED" = true ] +then + exit 0 +else + exit 1 +fi \ No newline at end of file