44
55cd " $( dirname " $0 " ) "
66
7- mkdir -p sauce-connect-proxy
7+ mkdir -p sauce-connect-proxy/logs
88pushd sauce-connect-proxy
99
1010wait_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