From d407a890b3b42d11f60fc4adcfe990e02876dbdd Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Fri, 10 Jul 2020 21:07:50 +0200 Subject: [PATCH] include tunnelIdentifier in webdriver capabilities --- tests/frontend/travis/remote_runner.js | 1 + tests/frontend/travis/sauce_tunnel.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/frontend/travis/remote_runner.js b/tests/frontend/travis/remote_runner.js index 1e04b2a0d..aba5435e8 100644 --- a/tests/frontend/travis/remote_runner.js +++ b/tests/frontend/travis/remote_runner.js @@ -17,6 +17,7 @@ var sauceTestWorker = async.queue(function (testSettings, callback) { testSettings.name = name; testSettings["public"] = true; testSettings["build"] = process.env.GIT_HASH; + testSettings["tunnelIdentifier"] = process.env.TRAVIS_JOB_NUMBER; // we wait 10 seconds here with the hope it was enough time for the minified files to be built etc. setTimeout(function(){ diff --git a/tests/frontend/travis/sauce_tunnel.sh b/tests/frontend/travis/sauce_tunnel.sh index 0c4dd5245..4ab6e81a4 100755 --- a/tests/frontend/travis/sauce_tunnel.sh +++ b/tests/frontend/travis/sauce_tunnel.sh @@ -14,7 +14,7 @@ tar zxf /tmp/sauce.tar.gz --directory /tmp mv /tmp/sc-*-linux /tmp/sauce_connect # start the sauce connector in background and make sure it doesn't output the secret key -(/tmp/sauce_connect/bin/sc --user "${SAUCE_USERNAME}" --key "${SAUCE_ACCESS_KEY}" --pidfile /tmp/sauce.pid --readyfile /tmp/tunnel > /dev/null )& +(/tmp/sauce_connect/bin/sc --user "${SAUCE_USERNAME}" --key "${SAUCE_ACCESS_KEY}" -i "${TRAVIS_JOB_NUMBER}" --pidfile /tmp/sauce.pid --readyfile /tmp/tunnel > /dev/null )& # wait for the tunnel to build up while [ ! -e "/tmp/tunnel" ]