Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/browserstack/waitfor_tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@


# Wait for Connect to be ready before exiting
# Time out if we wait for more than 2 minutes, so that we can print logs.
# Time out if we wait for more than 2 minutes, so the process won't run forever.
let "counter=0"

while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
let "counter++"

if [ $counter -gt 240 ]; then
echo "Timed out after 2 minutes waiting for browser provider ready file"
# We must manually print logs here because travis will not run
# after_script commands if the failure occurs before the script
# phase.
./scripts/ci/print-logs.sh
echo
echo "Timed out after 2 minutes waiting for tunnel ready file"
exit 5
fi

printf "."
sleep .5
done
15 changes: 15 additions & 0 deletions scripts/sauce/sauce_connect_block.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,24 @@

# Wait for Connect to be ready before exiting
echo "Connecting to Sauce Labs"


# Wait for Saucelabs Connect to be ready before exiting
# Time out if we wait for more than 2 minutes, so the process won't run forever.
let "counter=0"

while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
let "counter++"

if [ $counter -gt 240 ]; then
echo
echo "Timed out after 2 minutes waiting for tunnel ready file"
exit 5
fi

printf "."
sleep .5
done

echo
echo "Connected"