Bug 1491371: [comm-task-env] Pass wrapped command name as argv[0]; r=dustin

Differential Revision: https://phabricator.services.mozilla.com/D24415

--HG--
rename : taskcluster/scripts/comm-task-env => taskcluster/docker/decision/comm-task-env
extra : moz-landing-system : lando
This commit is contained in:
Tom Prince 2019-03-21 20:05:56 +00:00
parent 56d0741c05
commit b7b0abc340
3 changed files with 3 additions and 5 deletions

View File

@ -25,9 +25,7 @@ RUN bash /tmp/system-setup.sh
# %include taskcluster/scripts/run-task
ADD topsrcdir/taskcluster/scripts/run-task /builds/worker/bin/run-task
# %include taskcluster/scripts/comm-task-env
ADD topsrcdir/taskcluster/scripts/comm-task-env \
/builds/worker/bin/comm-task-env
ADD comm-task-env /builds/worker/bin/comm-task-env
ENV PATH=/builds/worker/bin:$PATH \
SHELL=/bin/bash \

View File

@ -1 +1 @@
2.2.0
2.2.1

View File

@ -182,7 +182,7 @@ def update_environment(gecko_conf):
def exec_run_task(args):
"""Executes run-task with a modified environment."""
print_message("Executing: {}".format(pformat(args)))
os.execv(args[0], args[1:])
os.execv(args[0], args[0:])
def main():