Merge "RESTRICT AUTOMERGE: Exclude mcts tests from cts based on the env config, a CP from aosp/3081046." into android14-tests-dev

This commit is contained in:
Tongbo Liu
2024-07-15 03:36:43 +00:00
committed by Gerrit Code Review

View File

@@ -725,6 +725,14 @@ else
test_config := $(wildcard $(LOCAL_PATH)/AndroidTest.xml)
endif
ifeq ($(EXCLUDE_MCTS),true)
ifneq (,$(test_config))
ifneq (,$(filter mcts-%,$(LOCAL_COMPATIBILITY_SUITE)))
LOCAL_COMPATIBILITY_SUITE := $(filter-out cts,$(LOCAL_COMPATIBILITY_SUITE))
endif
endif
endif
ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE))
# If we are building a native test or benchmark and its stem variants are not defined,