[ios/webrtc] build command and pass it to Swarming

command and relative_cwd properties are being deprecated from
isolate and isolated (crbug/1069704). A patch was introduced
in crrev/c/2418404 to pass command by fetching what was set in
isolated. However, isolated will no longer have the command,
so this results in a KeyError.

This change builds the command and appends it to the task dict
in the isolate_test() method as a workaround with raw_cmd as key.
relative_cwd remains defaulted to ".".

The SwarmingIosTest object takes raw_cmd and relative_cwd from
this dict and passes them when creating the Swarming task object
in pre_run.

Bug: 1144638
Change-Id: I969e81779880b3b2057f041f427b4614c17fd161
Recipe-Nontrivial-Roll: build_limited_scripts_slave
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2518615
Commit-Queue: Jeff Yoon <jeffyoon@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
42 files changed
tree: d9377a718b5eb873902cfa5972cdbd9d398fb5aa
  1. infra/
  2. recipes/
  3. scripts/
  4. site_config/
  5. third_party/
  6. .gitattributes
  7. .gitignore
  8. .style.yapf
  9. .vpython
  10. .yapfignore
  11. codereview.settings
  12. CROS_OWNERS
  13. DEPS
  14. environment.cfg.py
  15. LICENSE
  16. OWNERS
  17. PRESUBMIT.py
  18. README.md
  19. WATCHLISTS
README.md

Recipes

If you're here to make a change to ‘recipes’ (the code located in scripts/slave/recipes*), please take a look at the README for more information pertaining to recipes.

Style

The preferred style is PEP8 with two-space indent; that is, the Chromium Python style. Functions use lowercase_with_underscores, with the exception of the special functions RunSteps and RunTests in recipes. Use yapf (git cl format --no-clang-format) to autoformat new code.