зеркало из https://github.com/mozilla/gecko-dev.git
Bug 999407 - add --setenv option for mochitests run through mach; r=jmaher
DONTBUILD because NPOTB
This commit is contained in:
Родитель
74fa961dfe
Коммит
497cdb9d36
|
@ -190,7 +190,7 @@ class MochitestRunner(MozbuildObject):
|
|||
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, quiet=False, **kwargs):
|
||||
install_extension=None, quiet=False, environment=[], **kwargs):
|
||||
"""Runs a mochitest.
|
||||
|
||||
test_paths are path to tests. They can be a relative path from the
|
||||
|
@ -314,6 +314,7 @@ class MochitestRunner(MozbuildObject):
|
|||
options.dumpDMDAfterTest = dump_dmd_after_test
|
||||
options.dumpOutputDirectory = dump_output_directory
|
||||
options.quiet = quiet
|
||||
options.environment = environment
|
||||
|
||||
options.failureFile = failure_file_path
|
||||
if install_extension != None:
|
||||
|
@ -515,6 +516,11 @@ def MochitestCommand(func):
|
|||
help='Do not print test log lines unless a failure occurs.')
|
||||
func = quiet(func)
|
||||
|
||||
setenv = CommandArgument('--setenv', default=[], action='append',
|
||||
metavar='NAME=VALUE', dest='environment',
|
||||
help="Sets the given variable in the application's environment")
|
||||
func = setenv(func)
|
||||
|
||||
return func
|
||||
|
||||
def B2GCommand(func):
|
||||
|
|
Загрузка…
Ссылка в новой задаче