RESTRICT AUTOMERGE: Exclude mcts tests from cts based on the env config, a CP from aosp/3081046. am: b60ebe0d7f am: 455b339478

Original change: https://android-review.googlesource.com/c/platform/build/+/3164465

Change-Id: I1d55a2ccecc0427744ff8ca3702bb7db7b83389a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tongbo Liu
2024-07-15 04:29:32 +00:00
committed by Automerger Merge Worker

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,