From c7fcc00b1eb3ed4cb3b4b5eeeb62bf9dd3443050 Mon Sep 17 00:00:00 2001 From: Jonathan Griffin Date: Wed, 23 May 2012 16:58:44 -0700 Subject: [PATCH] Bug 758066 - Add --no-window to runemu's arguments, a=test-only, DONTBUILD because NPOTB --- testing/marionette/client/marionette/scripts/runemu.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/testing/marionette/client/marionette/scripts/runemu.py b/testing/marionette/client/marionette/scripts/runemu.py index 99f2a14417b7..1deac3845e2b 100644 --- a/testing/marionette/client/marionette/scripts/runemu.py +++ b/testing/marionette/client/marionette/scripts/runemu.py @@ -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)