Bug 1222146-Allow test API server to be run on env-specified port, r=Mardak, NPOTB, DONTBUILD
authorDan Mosedale <dmose@meer.net>
Thu, 05 Nov 2015 13:12:20 -0800
changeset 271319 d3e4ad7074009f1361a26369c677d2a7242f32f8
parent 271318 dd0ccce3117a15dbe9071ce97380bc564775b374
child 271320 d80fabc202380574975c2dc17ceda5c42617ecd4
child 271411 2586d921cb1fdffc54e9d7c41b3843ddaca7cfd2
push id29637
push userkwierso@gmail.com
push dateFri, 06 Nov 2015 01:39:47 +0000
treeherdermozilla-central@d80fabc20238 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak, NPOTB, DONTBUILD
bugs1222146
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1222146-Allow test API server to be run on env-specified port, r=Mardak, NPOTB, DONTBUILD
browser/components/loop/test/functional/config.py
--- a/browser/components/loop/test/functional/config.py
+++ b/browser/components/loop/test/functional/config.py
@@ -1,11 +1,13 @@
+from os import environ
+
 # Loop server configuration
 CONTENT_SERVER_PORT = 3001
-LOOP_SERVER_PORT = 5001
+LOOP_SERVER_PORT = environ.get("LOOP_SERVER_PORT") or 5001
 LOOP_SERVER_URL = "http://localhost:" + str(LOOP_SERVER_PORT)
 FIREFOX_PREFERENCES = {
     "loop.server": LOOP_SERVER_URL + "/v0",
     "browser.dom.window.dump.enabled": True,
     # Some more changes might be necesarry to have this working in offline mode
     "media.peerconnection.use_document_iceservers": False,
     "media.peerconnection.ice.loopback": True,
     "devtools.chrome.enabled": True,