commit | 34ead5d40ba33beb2909d9085222c7491e3a96c0 | [log] [tgz] |
---|---|---|
author | Garrett Beaty <gbeaty@chromium.org> | Thu Nov 05 22:02:00 2020 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 05 22:02:00 2020 |
tree | 056699b53486a8fa079cab0542c27b64a945afb8 | |
parent | 82fc77d4aa09797eb4bec14c63323f06409bda2e [diff] |
Remove **runtest_kwargs from Test subclass __init__ methods. Taking in arbitrary keyword arguments to be passed to runtest is mostly unused: the generator for local gtests will never set any arbitrary keyword arguments and WebRTCPerfTest sets it, but needs to make modifications to it as part of running the test because it needs to read values from the API to determine the final value. The classes have been modified with a _get_runtests_kwargs method that returns {} for LocalGTestTest and returns a dictionary to configure the perf uploading for WebRTCPerfTest. In the case of LocalIsolatedScriptTest, runtest_kwargs is not used by the class, so taking arbitrary keyword arguments in runtest_kwargs is causing keyword ResultDB-related keyword arguments provided by the generator (full_test_target, test_id_prefix) to be effectively ignored. Named arguments have been added so that they can take effect as expected. This simplifies further refactoring to remove the test_specs field from bot_spec.BotSpec. Bug: 1128746 Change-Id: I168e93faa3a3124850de0ed6ef2942e260f5ac86 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2514903 Commit-Queue: Garrett Beaty <gbeaty@chromium.org> Auto-Submit: 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.