commit | c9d57f67fbb18336bcc30f40d062924fa63a1f3c | [log] [tgz] |
---|---|---|
author | Garrett Beaty <gbeaty@chromium.org> | Fri Nov 06 16:56:16 2020 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 06 16:56:16 2020 |
tree | a431a0fee51c7da21c771866b743c0e90a0ce354 | |
parent | c59fbd73ac80bedc701d492ad51aa02234d3bcdd [diff] |
Add a function for declaring a callable attribute. This will be used when introducing distinct types for specs for the different test classes as some tests take callbacks as input. Bug: 1128746 Change-Id: If7d1fc887765a4fb9a6be321214cb0a9e789de8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2518340 Commit-Queue: Garrett Beaty <gbeaty@chromium.org> Reviewed-by: Stephen Martinis <martiniss@chromium.org>
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.