File tree Expand file tree Collapse file tree
sample-code/examples/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ def setUpWebServer(self):
6868
6969 def setUpTunnel (self ):
7070 # Setting up Sauce Connect tunnel
71- # self.process = subprocess.Popen(["java -jar Sauce-Connect.jar %s %s" % (SAUCE_USERNAME, SAUCE_ACCESS_KEY)],
72- # shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
7371 self .process = subprocess .Popen (['./sc/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY' ],
7472 shell = True , stdout = subprocess .PIPE , stderr = subprocess .PIPE )
7573 p = self .process
@@ -86,7 +84,6 @@ def setUpTunnel(self):
8684 read = p .stdout .readline ()
8785 sys .stdout .write ("[Sauce Connect]: %s" % read )
8886
89- #if "Connected! You may start your tests." in read:
9087 if "Sauce Connect is up, you may start your tests." in read :
9188 print "[Sauce Connect]: Tunnel ready, running the test"
9289 is_ready = True
You can’t perform that action at this time.
0 commit comments