File tree 3 files changed +20
-2
lines changed
3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
TUNNEL_LOG=" $LOGS_DIR /browserstack-tunnel.log"
4
4
5
+ # Method that prints the logfile output of the browserstack tunnel.
6
+ printLog () {
7
+ echo " Logfile output of Browserstack tunnel (${TUNNEL_LOG} ):"
8
+ echo " "
9
+ cat ${TUNNEL_LOG}
10
+ }
11
+
5
12
# Wait for Connect to be ready before exiting
6
13
# Time out if we wait for more than 2 minutes, so the process won't run forever.
7
14
let " counter=0"
@@ -10,7 +17,7 @@ let "counter=0"
10
17
if [ -f $BROWSER_PROVIDER_ERROR_FILE ]; then
11
18
echo
12
19
echo " An error occurred while starting the tunnel. See error:"
13
- cat $TUNNEL_LOG
20
+ printLog
14
21
exit 5
15
22
fi
16
23
@@ -20,6 +27,7 @@ while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
20
27
if [ $counter -gt 240 ]; then
21
28
echo
22
29
echo " Timed out after 2 minutes waiting for tunnel ready file"
30
+ printLog
23
31
exit 5
24
32
fi
25
33
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ TUNNEL_FILE="sc-4.4.7-linux.tar.gz"
6
6
TUNNEL_URL=" https://saucelabs.com/downloads/${TUNNEL_FILE} "
7
7
TUNNEL_DIR=" /tmp/saucelabs-connect"
8
8
9
- TUNNEL_LOG=" ${LOGS_DIR} /sauce-connect "
9
+ TUNNEL_LOG=" ${LOGS_DIR} /saucelabs-tunnel.log "
10
10
11
11
SAUCE_ACCESS_KEY=` echo ${SAUCE_ACCESS_KEY} | rev`
12
12
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ TUNNEL_LOG=" $LOGS_DIR /saucelabs-tunnel.log"
4
+
5
+ # Method that prints the logfile output of the saucelabs tunnel.
6
+ printLog () {
7
+ echo " Logfile output of Saucelabs tunnel (${TUNNEL_LOG} ):"
8
+ echo " "
9
+ cat ${TUNNEL_LOG}
10
+ }
11
+
3
12
# Wait for Saucelabs Connect to be ready before exiting
4
13
# Time out if we wait for more than 2 minutes, so the process won't run forever.
5
14
let " counter=0"
@@ -10,6 +19,7 @@ while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
10
19
if [ $counter -gt 240 ]; then
11
20
echo " "
12
21
echo " Timed out after 2 minutes waiting for tunnel ready file"
22
+ printLog
13
23
exit 5
14
24
fi
15
25
You can’t perform that action at this time.
0 commit comments