forked from mirrors/gecko-dev
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:
parent
ffc50b974a
commit
a0aee377f9
1 changed files with 6 additions and 0 deletions
|
|
@ -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?)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue