[chromium_tests] re-write gathering step for tests

`_calculate_tests_to_run` gathers two lists of tests to run. The code contains
outdated parts and is hard to understand due the naming and the positioning.

This CL extracts the test gathering and removes unnecessary parts.

R=jbudorick@chromium.org

Bug: 950731
Change-Id: Ic7f43ff71bf92d20b1f2a1d8bb34042a34307aec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/1617225
Auto-Submit: Tamer Tas <tmrts@chromium.org>
Commit-Queue: Tamer Tas <tmrts@chromium.org>
Reviewed-by: John Budorick <jbudorick@chromium.org>
2 files changed
tree: aa403e8438846440c8921d717d2c387d0a3e7dd1
  1. .gitattributes
  2. .gitignore
  3. .vpython
  4. DEPS
  5. LICENSE
  6. OWNERS
  7. PRESUBMIT.py
  8. README.md
  9. WATCHLISTS
  10. codereview.settings
  11. environment.cfg.py
  12. infra/
  13. masters/
  14. scripts/
  15. site_config/
  16. slave/
  17. tests/
  18. third_party/
README.md

build

Hi build contributor! If you do any change in scripts/master/ or touching any master's html/ directories, you must restart master.chromium.fyi first and ensure that it still works before restarting other masters.

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.