Bug 1111188 - Remove temporary workaround for ssltunnel in mochitest; r=emk

This commit is contained in:
Geoff Brown 2019-01-04 09:21:49 -07:00
parent 9d384ff9f9
commit 310d40b967
4 changed files with 7 additions and 14 deletions

View File

@ -67,8 +67,7 @@ class JUnitTestRunner(MochitestDesktop):
self.build_profile()
self.startServers(
self.options,
debuggerInfo=None,
ignoreSSLTunnelExts=True)
debuggerInfo=None)
self.log.debug("Servers started")
def server_init(self):

View File

@ -123,11 +123,9 @@ class RobocopTestRunner(MochitestDesktop):
self.printDeviceInfo()
self.setupLocalPaths()
self.buildProfile()
# ignoreSSLTunnelExts is a workaround for bug 1109310
self.startServers(
self.options,
debuggerInfo=None,
ignoreSSLTunnelExts=True)
debuggerInfo=None)
self.log.debug("Servers started")
def cleanup(self):

View File

@ -568,7 +568,7 @@ class WebSocketServer(object):
class SSLTunnel:
def __init__(self, options, logger, ignoreSSLTunnelExts=False):
def __init__(self, options, logger):
self.log = logger
self.process = None
self.utilityPath = options.utilityPath
@ -578,7 +578,6 @@ class SSLTunnel:
self.httpPort = options.httpPort
self.webServer = options.webServer
self.webSocketPort = options.webSocketPort
self.useSSLTunnelExts = not ignoreSSLTunnelExts
self.customCertRE = re.compile("^cert=(?P<nickname>[0-9a-zA-Z_ ]+)")
self.clientAuthRE = re.compile("^clientauth=(?P<clientauth>[a-z]+)")
@ -604,7 +603,7 @@ class SSLTunnel:
config.write("redirhost:%s:%s:%s:%s\n" %
(loc.host, loc.port, self.sslPort, redirhost))
if self.useSSLTunnelExts and option in (
if option in (
'tls1',
'ssl3',
'rc4',
@ -1145,7 +1144,7 @@ class MochitestDesktop(object):
self.log.error("runtests.py | Timed out while waiting for "
"websocket/process bridge startup.")
def startServers(self, options, debuggerInfo, ignoreSSLTunnelExts=False):
def startServers(self, options, debuggerInfo):
# start servers and set ports
# TODO: pass these values, don't set on `self`
self.webServer = options.webServer
@ -1169,8 +1168,7 @@ class MochitestDesktop(object):
# start SSL pipe
self.sslTunnel = SSLTunnel(
options,
logger=self.log,
ignoreSSLTunnelExts=ignoreSSLTunnelExts)
logger=self.log)
self.sslTunnel.buildConfig(self.locations)
self.sslTunnel.start()

View File

@ -216,12 +216,10 @@ class MochiRemote(MochitestDesktop):
def startServers(self, options, debuggerInfo):
""" Create the servers on the host and start them up """
restoreRemotePaths = self.switchToLocalPaths(options)
# ignoreSSLTunnelExts is a workaround for bug 1109310
MochitestDesktop.startServers(
self,
options,
debuggerInfo,
ignoreSSLTunnelExts=True)
debuggerInfo)
restoreRemotePaths()
def buildProfile(self, options):