Commit c78e7dbd authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

Fix the run-swarmed script on Fuchsia.

Tested: Locally
Change-Id: I1684b5336b039ba0d742489aba65fb8bfc3a5421
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020560
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Reviewed-by: default avatarScott Graham <scottmg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735155}
parent 84b56aac
...@@ -62,31 +62,36 @@ def _Spawn(args): ...@@ -62,31 +62,36 @@ def _Spawn(args):
'-d', 'gpu', 'none', '-d', 'gpu', 'none',
'-d', 'cpu', args.arch, '-d', 'cpu', args.arch,
] ]
elif args.target_os == 'android' or args.target_os == 'win': if args.target_os == 'android':
if args.target_os == 'android': trigger_args += ['-d', 'device_os', args.device_os]
trigger_args += ['-d', 'device_os', args.device_os] # The canonical version numbers are stored in the infra repository here:
# The canonical version numbers are stored in the infra repository here: # build/scripts/slave/recipe_modules/swarming/api.py
# build/scripts/slave/recipe_modules/swarming/api.py cpython_version = 'version:2.7.15.chromium14'
cpython_version = 'version:2.7.15.chromium14' vpython_version = 'git_revision:98a268c6432f18aedd55d62b9621765316dc2a16'
vpython_version = 'git_revision:98a268c6432f18aedd55d62b9621765316dc2a16' cpython_pkg = (
cpython_pkg = ( '.swarming_module:infra/python/cpython/${platform}:' + cpython_version)
'.swarming_module:infra/python/cpython/${platform}:' + vpython_native_pkg = (
cpython_version) '.swarming_module:infra/tools/luci/vpython-native/${platform}:' +
vpython_native_pkg = ( vpython_version)
'.swarming_module:infra/tools/luci/vpython-native/${platform}:' + vpython_pkg = ('.swarming_module:infra/tools/luci/vpython/${platform}:' +
vpython_version) vpython_version)
vpython_pkg = ( trigger_args += [
'.swarming_module:infra/tools/luci/vpython/${platform}:' + '--cipd-package',
vpython_version) cpython_pkg,
trigger_args += [ '--cipd-package',
'--cipd-package', cpython_pkg, vpython_native_pkg,
'--cipd-package', vpython_native_pkg, '--cipd-package',
'--cipd-package', vpython_pkg, vpython_pkg,
'--env-prefix', 'PATH', '.swarming_module', '--env-prefix',
'--env-prefix', 'PATH', '.swarming_module/bin', 'PATH',
'--env-prefix', 'VPYTHON_VIRTUALENV_ROOT', '.swarming_module',
'.swarming_module_cache/vpython', '--env-prefix',
] 'PATH',
'.swarming_module/bin',
'--env-prefix',
'VPYTHON_VIRTUALENV_ROOT',
'.swarming_module_cache/vpython',
]
trigger_args += [ trigger_args += [
'--', '--',
'--test-launcher-summary-output=${ISOLATED_OUTDIR}/output.json', '--test-launcher-summary-output=${ISOLATED_OUTDIR}/output.json',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment