Bug 1525373 - Support comm-checkout when using generic-worker with run-task. r=glandium

Fixes Thunderbird builds on Windows.

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

--HG--
extra : rebase_source : d7bbec2ac711fea9dc785861f7d729816890efb8
This commit is contained in:
Rob Lemley 2019-07-25 02:24:24 +00:00
parent bfcfe34e57
commit 6808dc0e6f

View File

@ -169,6 +169,10 @@ def generic_worker_run_task(config, job, taskdesc):
run_command = '"{}"'.format(run_command)
run_command = ['bash', '-cx', run_command]
if run['comm-checkout']:
command.append('--comm-checkout={}/comm'.format(
taskdesc['worker']['env']['GECKO_PATH']))
if run['run-as-root']:
command.extend(('--user', 'root', '--group', 'root'))
command.append('--')