commit | 48319bfa2891694a641abc7758580f99413f5ad8 | [log] [tgz] |
---|---|---|
author | easoncylee <easoncylee@google.com> | Wed Oct 30 15:31:34 2019 +0800 |
committer | easoncylee <easoncylee@google.com> | Tue Feb 04 14:59:20 2020 +0800 |
tree | 9b2d6b605135e4b195e5ec6816b8855f0ab0ef8a | |
parent | dc7196b312742aefab4c777ece2d59389a46e803 [diff] |
TestMappingSuiteRunner: Add @Option test-mapping-path. This CL is to add @Option test-mapping-path to allow TMSR running tests according to the TEST_MAPPING file from the specified paths. Bug: 117880789 Test: unittests. Change-Id: Ibb9ffa82c4658b72c25429c810f00e0b69d50f30 Merged-In: Ibb9ffa82c4658b72c25429c810f00e0b69d50f30
diff --git a/src/com/android/tradefed/testtype/suite/TestMappingSuiteRunner.java b/src/com/android/tradefed/testtype/suite/TestMappingSuiteRunner.java index b13ffa7..8422e96 100644 --- a/src/com/android/tradefed/testtype/suite/TestMappingSuiteRunner.java +++ b/src/com/android/tradefed/testtype/suite/TestMappingSuiteRunner.java
@@ -67,6 +67,12 @@ ) private Set<String> mTestModulesForced = new HashSet<>(); + @Option( + name = "test-mapping-path", + description = "Run tests according to the test mapping path." + ) + private List<String> mTestMappingPaths = new ArrayList<>(); + /** Special definition in the test mapping structure. */ private static final String TEST_MAPPING_INCLUDE_FILTER = "include-filter";