зеркало из https://github.com/mozilla/gecko-dev.git
Bug 758066 - Add --no-window to runemu's arguments, a=test-only, DONTBUILD because NPOTB
This commit is contained in:
Родитель
e1bed89b3e
Коммит
c7fcc00b1e
|
@ -2,8 +2,8 @@ from marionette import Marionette, Emulator
|
|||
from optparse import OptionParser
|
||||
|
||||
|
||||
def runemulator(homedir=None, url=None, pidfile=None, arch='x86'):
|
||||
qemu = Emulator(homedir=homedir, arch=arch)
|
||||
def runemulator(homedir=None, url=None, pidfile=None, arch='x86', noWindow=False):
|
||||
qemu = Emulator(homedir=homedir, arch=arch, noWindow=noWindow)
|
||||
qemu.start()
|
||||
port = qemu.setup_port_forwarding(2828)
|
||||
assert(qemu.wait_for_port())
|
||||
|
@ -30,6 +30,8 @@ if __name__ == '__main__':
|
|||
help='url to navigate to after launching emulator')
|
||||
parser.add_option('--pidfile', dest='pidfile', action='store',
|
||||
help='file in which to store emulator pid')
|
||||
parser.add_option('--no-window', dest='noWindow', action='store_true',
|
||||
help='pass -no-window to the emulator')
|
||||
|
||||
options, args = parser.parse_args()
|
||||
if not options.repo_path:
|
||||
|
@ -38,5 +40,6 @@ if __name__ == '__main__':
|
|||
runemulator(homedir=options.repo_path,
|
||||
url=options.url,
|
||||
pidfile=options.pidfile,
|
||||
arch=options.arch)
|
||||
arch=options.arch,
|
||||
noWindow=options.noWindow)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче