Bug 1488554: Part 4 - Make FirefoxRunner pass --wait-for-browser on Windows; r=ahal

Depends on D4972

Differential Revision: https://phabricator.services.mozilla.com/D6702

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Aaron Klotz 2018-09-26 19:11:55 +00:00
Родитель 02c245560d
Коммит ad8a283d23
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -8,6 +8,7 @@ import mozinfo
import os
import sys
from ..application import (DefaultContext, FirefoxContext)
from .runner import BaseRunner
@ -24,6 +25,13 @@ class GeckoRuntimeRunner(BaseRunner):
self.binary = binary
self.cmdargs = cmdargs or []
if mozinfo.isWin and (isinstance(self.app_ctx, FirefoxContext) or
isinstance(self.app_ctx, DefaultContext)):
# The launcher process is present in this configuration. Always
# pass this flag so that we can wait for the browser to complete
# its execution.
self.cmdargs.append('--wait-for-browser')
# allows you to run an instance of Firefox separately from any other instances
self.env['MOZ_NO_REMOTE'] = '1'