Pass build directory from builder to tester.

In switching builders to set the swarming command line directly,
we had been relying on the tester having the same build directory
configured as the builder (e.g., "out/Debug").

However, if you have a 64-bit builder running on Windows and a
thin tester running on Linux, by default you'll build into
"out/Release_x64" and try to use "out/Release" on the tester.

We should've just been passing the build directory to use along
with the other information on the command line, so as to not rely
on this. This CL adds an additional build property,
'swarming_command_lines_cwd', to do that.

Bug: 1116139, 1108005
Change-Id: I68d29532fa2acebfe12f5c1c27930ffe00926fc3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2354631
Commit-Queue: Dirk Pranke <dpranke@google.com>
Reviewed-by: Garrett Beaty <gbeaty@chromium.org>
8 files changed
tree: 7901c39e6e32eb617a7a30d58fcc5bbe637e12a9
  1. infra/
  2. scripts/
  3. site_config/
  4. third_party/
  5. .gitattributes
  6. .gitignore
  7. .style.yapf
  8. .vpython
  9. .yapfignore
  10. codereview.settings
  11. CROS_OWNERS
  12. DEPS
  13. environment.cfg.py
  14. LICENSE
  15. OWNERS
  16. PRESUBMIT.py
  17. README.md
  18. 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.