Skip to content

Commit

Permalink
Merge pull request #950 from bugsnag/instrumentation-test-error
Browse files Browse the repository at this point in the history
Stop instrumentation tests on error
  • Loading branch information
twometresteve authored Oct 13, 2020
2 parents 0a334f8 + 6d28871 commit 4f0c828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run-instrumentation-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ status_response=$(curl -s -u "$BROWSER_STACK_USERNAME:$BROWSER_STACK_ACCESS_KEY"
status=$(echo "$status_response" | jq -r ".status")

WAIT_COUNT=0
until [ "$status" == "\"done\"" ] || [ $WAIT_COUNT -eq 100 ]; do
until [ "$status" == "\"done\"" ] || [ "$status" == "\"error\"" ] || [ $WAIT_COUNT -eq 100 ]; do
echo "Android Tests [$(timestamp)]: Current test status: $status, Time waited: $((WAIT_COUNT * 15))"
((WAIT_COUNT++))
sleep 15
Expand All @@ -63,7 +63,7 @@ until [ "$status" == "\"done\"" ] || [ $WAIT_COUNT -eq 100 ]; do
done

if [ "$status" != "\"done\"" ]; then
echo "Timed out waiting for tests to complete"
echo "Test error or timeout"
exit 1
fi

Expand Down

0 comments on commit 4f0c828

Please sign in to comment.