Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 00d38e3

Browse files
committed
chore(travis): suppress verbose log output and allow error logging
Based on angular/angular#27657.
1 parent a0ed1b7 commit 00d38e3

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

lib/saucelabs/start_tunnel.sh

+5-8
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ CONNECT_URL="https://saucelabs.com/downloads/sc-$SC_VERSION-linux.tar.gz"
1616
CONNECT_DIR="/tmp/sauce-connect-$RANDOM"
1717
CONNECT_DOWNLOAD="sc-$SC_VERSION-linux.tar.gz"
1818

19-
CONNECT_LOG="$LOGS_DIR/sauce-connect"
20-
CONNECT_STDOUT="$LOGS_DIR/sauce-connect.stdout"
21-
CONNECT_STDERR="$LOGS_DIR/sauce-connect.stderr"
19+
# We don't want to create a log file because sauceconnect always logs in verbose mode. This seems
20+
# to be overwhelming Travis and causing flakes when we are cat-ing the log in "print_logs.sh"
21+
CONNECT_LOG="/dev/null"
2222

2323
# Get Connect and start it
2424
mkdir -p $CONNECT_DIR
@@ -42,9 +42,6 @@ if [ ! -z "$BROWSER_PROVIDER_READY_FILE" ]; then
4242
fi
4343

4444

45-
echo "Starting Sauce Connect in the background, logging into:"
46-
echo " $CONNECT_LOG"
47-
echo " $CONNECT_STDOUT"
48-
echo " $CONNECT_STDERR"
45+
echo "Starting Sauce Connect in the background"
4946
sauce-connect/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY $ARGS \
50-
--logfile $CONNECT_LOG 2> $CONNECT_STDERR 1> $CONNECT_STDOUT &
47+
--logfile $CONNECT_LOG &

scripts/travis/print_logs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ for FILE in $LOG_FILES; do
77
echo "================================================================================"
88
echo " $FILE"
99
echo "================================================================================"
10-
cat $FILE
10+
cat $FILE || true
1111
done

0 commit comments

Comments
 (0)