Skip to content

Commit b608386

Browse files
Persist sauce connect proxy logs as artifacts (#830)
1 parent 2b135ff commit b608386

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ jobs:
8181
- run: << parameters.browser-params >> npm run test:integration-browsers:ci
8282
- store_test_results:
8383
path: ./integration_test/test-results
84+
- store_artifacts:
85+
path: ./integration_test/sauce-connect-proxy/logs
8486
workflows:
8587
version: 2
8688
test-workflow:

integration_test/run-with-tunnel.sh

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x
44

55
cd "$(dirname "$0")"
66

7-
mkdir -p sauce-connect-proxy
7+
mkdir -p sauce-connect-proxy/logs
88
pushd sauce-connect-proxy
99

1010
wait_file() {
@@ -43,7 +43,7 @@ if [[ -z "${SC_SSL_BUMPING}" ]]; then
4343
$SAUCELABS_TUNNEL_PATH \
4444
-u $SAUCELABS_USERNAME \
4545
-k $SAUCELABS_ACCESS_KEY \
46-
--logfile ./saucelabs-no-ssl-bump-logs \
46+
--logfile ./logs/saucelabs-no-ssl-bump-logs \
4747
--pidfile ./saucelabs-no-ssl-bump-pid \
4848
--no-ssl-bump-domains testhost,corshost \
4949
--tunnel-identifier $SAUCELABS_TUNNEL_ID_NO_SSL_BUMP \
@@ -58,7 +58,7 @@ if [[ ! -z "${SC_SSL_BUMPING}" ]]; then
5858
$SAUCELABS_TUNNEL_PATH \
5959
-u $SAUCELABS_USERNAME \
6060
-k $SAUCELABS_ACCESS_KEY \
61-
--logfile ./saucelabs-with-ssl-bump-logs \
61+
--logfile ./logs/saucelabs-with-ssl-bump-logs \
6262
--pidfile ./saucelabs-with-ssl-bump-pid \
6363
--tunnel-identifier $SAUCELABS_TUNNEL_ID_WITH_SSL_BUMP \
6464
--readyfile $SAUCELABS_READY_FILE_WITH_SSL_BUMP \
@@ -104,12 +104,3 @@ popd
104104

105105
# Run the specified commands
106106
$@
107-
108-
# Output the logs from the Sauce Connect proxy
109-
cd "$(dirname "$0")"
110-
pushd sauce-connect-proxy
111-
echo "Printing SauceConnect no-ssl bump logs:"
112-
cat ./saucelabs-no-ssl-bump-logs || true
113-
echo "Printing SauceConnect with-ssl bump logs:"
114-
cat ./saucelabs-with-ssl-bump-logs || true
115-
popd

0 commit comments

Comments
 (0)