check tests exit code

pull/7/head
yann300 9 years ago
parent 1bb64cd210
commit 2d16644925
  1. 16
      ci/browser_tests.sh

@ -18,18 +18,26 @@ while [ ! -f $SAUCECONNECT_READYFILE ]; do
sleep .5 sleep .5
done done
function updateTestExitCode() {
if [ $? -eq 1 ]
then
TEST_EXITCODE=1
fi
}
npm run nightwatch_remote_firefox npm run nightwatch_remote_firefox
updateTestExitCode
npm run nightwatch_remote_chrome npm run nightwatch_remote_chrome
updateTestExitCode
npm run nightwatch_remote_safari npm run nightwatch_remote_safari
updateTestExitCode
npm run nightwatch_remote_ie npm run nightwatch_remote_ie
updateTestExitCode
if [ $? -eq 1 ]
then
TEST_EXITCODE=1
fi
node ci/sauceDisconnect.js $SAUCECONNECT_USERNAME $SAUCECONNECT_ACCESSKEY $SAUCECONNECT_JOBIDENTIFIER node ci/sauceDisconnect.js $SAUCECONNECT_USERNAME $SAUCECONNECT_ACCESSKEY $SAUCECONNECT_JOBIDENTIFIER
echo $TEST_EXITCODE
if [ $TEST_EXITCODE -eq 1 ] if [ $TEST_EXITCODE -eq 1 ]
then then
exit 1 exit 1

Loading…
Cancel
Save