Bug 1778567: Add GECKO_PATH to any scripts or commands we run via run- action r=jewilde

Differential Revision: https://phabricator.services.mozilla.com/D151746
This commit is contained in:
Tom Ritter 2022-08-04 14:09:39 +00:00
parent ffc50b974a
commit a0aee377f9

View file

@ -543,11 +543,17 @@ class VendorManifest(MozbuildObject):
},
"action: {type} command: {command} working dir: {run_dir} args: {args}",
)
extra_env = (
{"GECKO_PATH": os.getcwd()}
if "GECKO_PATH" not in os.environ
else {}
)
self.run_process(
args=[command] + args,
cwd=run_dir,
log_name=command,
require_unix_environment=True,
append_env=extra_env,
)
else:
assert False, "Unknown action supplied (how did this pass validation?)"