зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
02c245560d
Коммит
ad8a283d23
|
@ -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'
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче