зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1688919 - Implement `mach jit-test --cgc` r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103056
This commit is contained in:
Родитель
ce8162c71a
Коммит
536f49d107
|
@ -617,12 +617,18 @@ class SpiderMonkeyTests(MachCommandBase):
|
|||
ok_if_tests_disabled=True,
|
||||
)
|
||||
@CommandArgument("--shell", help="The shell to be used")
|
||||
@CommandArgument(
|
||||
"--cgc",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Run with the SM(cgc) job's env vars",
|
||||
)
|
||||
@CommandArgument(
|
||||
"params",
|
||||
nargs=argparse.REMAINDER,
|
||||
help="Extra arguments to pass down to the test harness.",
|
||||
)
|
||||
def run_jittests(self, shell, params):
|
||||
def run_jittests(self, shell, cgc, params):
|
||||
import subprocess
|
||||
|
||||
self.virtualenv_manager.ensure()
|
||||
|
@ -635,7 +641,11 @@ class SpiderMonkeyTests(MachCommandBase):
|
|||
js,
|
||||
] + params
|
||||
|
||||
return subprocess.call(jittest_cmd)
|
||||
env = os.environ.copy()
|
||||
if cgc:
|
||||
env["JS_GC_ZEAL"] = "IncrementalMultipleSlices"
|
||||
|
||||
return subprocess.call(jittest_cmd, env=env)
|
||||
|
||||
@Command(
|
||||
"jsapi-tests", category="testing", description="Run SpiderMonkey JSAPI tests."
|
||||
|
|
Загрузка…
Ссылка в новой задаче