Skip to content
Snippets Groups Projects
Commit 16597fd3 authored by Steve Fink's avatar Steve Fink
Browse files

Bug 1726619 - Pass remaining args through `mach hazards analyze`

parent a5e31ede
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,12 @@ no shell found in %s -- must build the JS shell with `mach hazards build-shell`
@CommandArgument(
"--work-dir", default=None, help="Directory for output and working files."
)
def analyze(self, command_context, application, shell_objdir, work_dir):
@CommandArgument(
"extra",
nargs=argparse.REMAINDER,
help="Remaining non-optional arguments to analyze.py script",
)
def analyze(self, command_context, application, shell_objdir, work_dir, extra):
"""Analyzed gathered data for rooting hazards"""
shell = self.ensure_shell(command_context, shell_objdir)
......@@ -360,9 +365,14 @@ no shell found in %s -- must build the JS shell with `mach hazards build-shell`
os.path.join(self.script_dir(command_context), "analyze.py"),
"--js",
shell,
"gcTypes",
"-v",
]
if extra:
args += extra
else:
args += [
"gcTypes",
"-v",
]
self.setup_env_for_tools(os.environ)
self.setup_env_for_shell(os.environ, shell)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment