Bug 1114822 - Add an option to specify the location of the standalone server. r=dmose

This commit is contained in:
Nils Ohlmeier [:drno] 2014-12-22 16:48:00 -05:00
parent 22cc89f13e
commit 545ae6c276

View File

@ -56,8 +56,10 @@ class LoopTestServers:
@staticmethod
def start_content_server():
content_server_location = os.path.join(os.path.dirname(__file__),
"../../standalone")
content_server_location = os.environ.get('STANDALONE_SERVER')
if content_server_location is None:
content_server_location = os.path.join(os.path.dirname(__file__),
"../../standalone")
os.chdir(content_server_location)
p = processhandler.ProcessHandler(CONTENT_SERVER_COMMAND,