Bug 1688919 - Implement `mach jit-test --cgc` r=tcampbell

Differential Revision: https://phabricator.services.mozilla.com/D103056
This commit is contained in:
Steve Fink 2021-01-26 23:22:46 +00:00
Родитель ce8162c71a
Коммит 536f49d107
1 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -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."