include tunnelIdentifier in webdriver capabilities

This commit is contained in:
webzwo0i 2020-07-10 21:07:50 +02:00
parent c931a78081
commit d407a890b3
2 changed files with 2 additions and 1 deletions

View file

@ -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(){

View file

@ -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" ]