Skip to content
This repository was archived by the owner on Aug 20, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mozrunner/mozrunner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ def __init__(self, profile, binary, cmdargs=None, env=None,
info['CFBundleExecutable'])

self.cmdargs = cmdargs or []
_cmdargs = [i for i in self.cmdargs
# '~' should be expanded; see
# - https://bugzilla.mozilla.org/show_bug.cgi?id=874476
_cmdargs = [os.path.expanduser(i) for i in self.cmdargs
if i != '-foreground']
self.cmdargs = _cmdargs
if len(_cmdargs) != len(self.cmdargs):
# foreground should be last; see
# - https://bugzilla.mozilla.org/show_bug.cgi?id=625614
# - https://bugzilla.mozilla.org/show_bug.cgi?id=626826
self.cmdargs = _cmdargs
self.cmdargs.append('-foreground')

# process environment
Expand Down