From 51fcd5fb3ca50145f27740c66d2cc34fe5f6c0f5 Mon Sep 17 00:00:00 2001 From: Rob Sayre Date: Thu, 23 Jun 2011 15:47:25 -0700 Subject: [PATCH] only supply a -foreground argument on Mac. --- test/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index d7a0fa674..53f65f78b 100644 --- a/test/test.py +++ b/test/test.py @@ -159,7 +159,10 @@ class BrowserCommand(): shutil.rmtree(self.tempDir) def start(self, url): - cmds = [self.path, "-foreground", "-no-remote", "-profile", self.profileDir, url] + cmds = [self.path] + if platform.system() == "Darwin": + cmds.append("-foreground") + cmds.extend(["-no-remote", "-profile", self.profileDir, url]) subprocess.call(cmds) def makeBrowserCommands(browserManifestFile):