Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Global filters in Trade Federation
Stay organized with collections
Save and categorize content based on your preferences.
Global filters is a way to provide test filters to Tradefed that will apply
to the invocation automatically without having to worry about whether a test
supports it or not.
It will be inop if the configuration doesn't support filtering, but provide
the benefit of not throwing a configuration exception like it's usually the
case in Tradefed. This allows a service with minimal knowledge about Tradefed
to easily generate and provide filter flags generically.
Syntax
--global-filters:include-filter [abi] module-name [test-class][#method-name]
--global-filters:exclude-filter [abi] module-name [test-class][#method-name]
Where module-name is the only mandatory part to be provided.
For example:
- --global-filters:include-filter moduleA : will only run the module
- --global-filters:include-filter moduleA class#method : will only run the matching method
The option can be repeated if more filters are needed. Exclusion has
priority over inclusion.
Implementation
Source code
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-04 UTC."],[],[]]