client: fix run_isolated.py --env-prefix to be based on root

It was based on the relative_cwd, which can be confusing. Makes it
deterministically based on the root directory.

Add a unit test which caught a bug. :)

R=iannucci@chromium.org
Bug: 786503
Change-Id: Idb341a1e08aa37577fef2763f89206a97fd2c85d
Reviewed-on: https://chromium-review.googlesource.com/815596
Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>

Cr-Mirrored-From: https://chromium.googlesource.com/infra/luci/luci-py
Cr-Mirrored-Commit: b8d8f94c4f73629150cc48a4082c1c99318acbdf
2 files changed
tree: f10e04659e489ae2c3ee8d89369037cf0db41367
  1. example/
  2. libs/
  3. proto/
  4. tests/
  5. third_party/
  6. tools/
  7. utils/
  8. .gitignore
  9. auth.py
  10. cipd.py
  11. isolate.py
  12. isolate_format.py
  13. isolate_storage.py
  14. isolated_format.py
  15. isolateserver.py
  16. LICENSE
  17. LUCI_CONTEXT.md
  18. named_cache.py
  19. OWNERS
  20. PRESUBMIT.py
  21. README.md
  22. README.py
  23. run_isolated.py
  24. swarming.py
  25. trace_inputs.py
  26. WATCHLISTS
README.md

LUCI Python Client

This is the Python Client code for LUCI. It's part of the main python repo, and is also mirrored into a standalone client-py repo.

License

This project is licensed under Apache v2.0 license. See LICENSE for details.