try to build up the sauce labs tunnel, and tear it down after its etablished
This commit is contained in:
parent
bbab713c70
commit
d6ca5b54f7
|
@ -1,13 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# download and unzip the sauce connector
|
# download and unzip the sauce connector
|
||||||
echo "hello world"
|
curl http://saucelabs.com/downloads/Sauce-Connect-latest.zip > /tmp/sauce.zip
|
||||||
#curl http://saucelabs.com/downloads/Sauce-Connect-latest.zip > /tmp/sauce.zip
|
unzip /tmp/sauce.zip -d /tmp
|
||||||
#unzip /tmp/sauce.zip -d /tmp
|
|
||||||
|
|
||||||
# start the sauce connector in background and make sure it doesn't output the secret key
|
# start the sauce connector in background and make sure it doesn't output the secret key
|
||||||
#(java -jar /tmp/Sauce-Connect.jar $SAUCE_USER $SAUCE_KEY | grep -v $SAUCE_KEY)&
|
(java -jar /tmp/Sauce-Connect.jar $SAUCE_USER $SAUCE_KEY -f /tmp/tunnel | grep -v $SAUCE_KEY)&
|
||||||
|
|
||||||
#save the sauce pid in a file and give it a bit of time to connect
|
# save the sauce pid in a file
|
||||||
#echo $! > /tmp/sauce.pid
|
echo $! > /tmp/sauce.pid
|
||||||
#wait 30
|
|
||||||
#kill $!
|
# wait for the tunnel to build up
|
||||||
|
while [ ! -e "/tmp/tunnel" ]
|
||||||
|
do
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "READY!!!!"
|
||||||
|
kill $!
|
Loading…
Reference in New Issue