File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
# Wait for Connect to be ready before exiting
5
- # Time out if we wait for more than 2 minutes, so that we can print logs .
5
+ # Time out if we wait for more than 2 minutes, so the process won't run forever .
6
6
let " counter=0"
7
7
8
8
while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
9
9
let " counter++"
10
+
10
11
if [ $counter -gt 240 ]; then
11
- echo " Timed out after 2 minutes waiting for browser provider ready file"
12
- # We must manually print logs here because travis will not run
13
- # after_script commands if the failure occurs before the script
14
- # phase.
15
- ./scripts/ci/print-logs.sh
12
+ echo
13
+ echo " Timed out after 2 minutes waiting for tunnel ready file"
16
14
exit 5
17
15
fi
16
+
17
+ printf " ."
18
18
sleep .5
19
19
done
Original file line number Diff line number Diff line change 2
2
3
3
# Wait for Connect to be ready before exiting
4
4
echo " Connecting to Sauce Labs"
5
+
6
+
7
+ # Wait for Saucelabs Connect to be ready before exiting
8
+ # Time out if we wait for more than 2 minutes, so the process won't run forever.
9
+ let " counter=0"
10
+
5
11
while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
12
+ let " counter++"
13
+
14
+ if [ $counter -gt 240 ]; then
15
+ echo
16
+ echo " Timed out after 2 minutes waiting for tunnel ready file"
17
+ exit 5
18
+ fi
19
+
6
20
printf " ."
7
21
sleep .5
8
22
done
23
+
9
24
echo
10
25
echo " Connected"
You can’t perform that action at this time.
0 commit comments