Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 958395 - mochitest-plain mach command should add kwargs to option…
Browse files Browse the repository at this point in the history
…s, r=jmaher, DONTBUILD, a=NPOTB
  • Loading branch information
ahal committed Jan 10, 2014
1 parent 6da36b2 commit 88eb20d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testing/mochitest/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def run_desktop_test(self, suite=None, test_file=None, debugger=None,
chunk_by_dir=0, total_chunks=None, this_chunk=None, jsdebugger=False,
debug_on_failure=False, start_at=None, end_at=None, e10s=False,
dmd=False, dump_output_directory=None, dump_about_memory_after_test=False,
dump_dmd_after_test=False, install_extension=None):
dump_dmd_after_test=False, install_extension=None, **kwargs):
"""Runs a mochitest.
test_file is a path to a test file. It can be a relative path from the
Expand Down Expand Up @@ -315,6 +315,9 @@ def run_desktop_test(self, suite=None, test_file=None, debugger=None,
if install_extension != None:
options.extensionsToInstall = [os.path.join(self.topsrcdir,install_extension)]

for k, v in kwargs.iteritems():
setattr(options, k, v)

if test_path:
test_root = runner.getTestRoot(options)
test_root_file = mozpack.path.join(self.mochitest_dir, test_root, test_path)
Expand Down

0 comments on commit 88eb20d

Please sign in to comment.