commit | f16d4891a0adfb7c77ccc774f964ec64b59b53e6 | [log] [tgz] |
---|---|---|
author | Dirk Pranke <dpranke@google.com> | Wed Mar 24 19:46:55 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 24 19:46:55 2021 |
tree | 248f56f6c1e18c909fcf2a492bb30afb229c6db2 | |
parent | 01c9c6e0e5cf28167a448da46b99efeb2342ce09 [diff] |
Add ability to only run tests post-submit in chromium recipe. Sometimes it would be nice to be able to configure a test to only run post-submit (on the continuous builders), without also requiring it to run pre-submit on the tryjob/CQ builders. This CL adds the ability to look for a new boolean flag called `ci_only` in the test spec; if set to true, we will only run the test if the bot is not a tryserver. Bug: 1170989 Change-Id: Ic476a1d617a54c3369c2f2c58d2b0bd15c9f2054 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2783046 Reviewed-by: Stephen Martinis <martiniss@chromium.org> Reviewed-by: Erik Staab <estaab@chromium.org> Commit-Queue: Dirk Pranke <dpranke@google.com>
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.
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.