mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(saucelabs): interrupt if saucelabs tunnel does not start (#1747)
This commit is contained in:
committed by
Jeremy Elbourn
parent
2bab92a2b9
commit
9bb4809f89
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user