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

Lines changed: 5 additions & 8 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy