Make the iOS recipe module pass 'command' to Swarming.

This CL adds the possibility to pass 'command' to swarming at trigger
time instead of assuming it will be read from the .isolated file.

The 'command' and 'relative_cwd' fields are deprecated but they will
still be in the .isolated file so this CL reads them from it and
keep them in memory until the tests are triggered.

In the future, if 'command' and 'relative_cwd' will be removed from the
.isolated file, this idea will stop working. Since WebRTC is the
only used of this recipe_module, WebRTC should move away from it
and switch to the canonical way of getting the 'command line' via
MB and GN.

Led runs:

* WebRTC ios-sim: https://chromium-swarm.appspot.com/task?id=4ec890be775d4510
* WebRTC/Chromium FYI: https://chromium-swarm.appspot.com/task?id=4ec891068072a310

Recipe-Nontrivial-Roll: build_limited_scripts_slave
Bug: webrtc:11604
Change-Id: Id8a6277ce5e82f6832866afc2108b632ee9d247e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2418404
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Mirko Bonadei <mbonadei@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Jeff Yoon <jeffyoon@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
43 files changed
tree: 3defa128e33fda1344fee54a7cd6c169a7ded52e
  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.