mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 878914 - Fix race condition in marionette testrunner;r=jgriffin
This commit is contained in:
parent
195dfc24fd
commit
0c5bb30a4e
@ -242,16 +242,12 @@ class MarionetteTestRunner(object):
|
||||
|
||||
def start_httpd(self):
|
||||
host = moznetwork.get_ip()
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.bind(("",0))
|
||||
port = s.getsockname()[1]
|
||||
s.close()
|
||||
self.baseurl = 'http://%s:%d/' % (host, port)
|
||||
self.logger.info('running webserver on %s' % self.baseurl)
|
||||
self.httpd = MozHttpd(host=host,
|
||||
port=port,
|
||||
port=0,
|
||||
docroot=os.path.join(os.path.dirname(__file__), 'www'))
|
||||
self.httpd.start()
|
||||
self.baseurl = 'http://%s:%d/' % (host, self.httpd.httpd.server_port)
|
||||
self.logger.info('running webserver on %s' % self.baseurl)
|
||||
|
||||
def start_marionette(self):
|
||||
assert(self.baseurl is not None)
|
||||
|
Loading…
Reference in New Issue
Block a user