Closed
Bug 635357
Opened 14 years ago
Closed 14 years ago
mochitest harness shouldn't hardcode port number
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 572572
People
(Reporter: bhearsum, Unassigned)
Details
In Tegra-land, we use a single host as a proxy for multiple devices. When running mochitests, this means that the HTTP server is started on the proxy host, and the device connects back to it. Because the Mochitest harness hardcodes a port number, we end up timing out when starting the server on a ton of jobs.
Is there any way to remove the hardcoding of the port number?
Comment 1•14 years ago
|
||
Partially fixed by bug 544097 ?, partially exacerbated by bug 541117 ?
My conjecture, without really understanding, is that we replace mochi.test with 127.0.0.1 or a specified ip. I would hope we could do the same thing with the port... and maybe we already can but don't know it.
Reporter | ||
Comment 2•14 years ago
|
||
Aki points out that this is a dupe of bug 572572.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Comment 3•14 years ago
|
||
actually this is implemented in a roundabout way. First, if we are using a remote webserver (not serving to 127.0.0.1), we do not start the websocketserver, ssltunnel or the webserver from the normal scripts:
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py#440
In our remote version of the script we overload the startWebServer and we do launch a webserver on the host machine with a designated port (--http-port). Technically we have --ssl-port as well, but that isn't used (there are other problems to solve first before supporting ssl remotely).
I believe :bear was going to start up the webserver using a port number scheme similar to --http-port=8xxx, where xxx is the tegra number (i.e. 017). This is the only port we need for remote testing and it is configurable via the cli.
I think bug 572572 is designed to automatically detect an open port which would be smoother and probably required when we have ssl and websocket stuff fully working remotely and on mobile.
You need to log in
before you can comment on or make changes to this bug.
Description
•