Add whitelist for mcts modules

Some MCTS modules should not be removed from CTS because they are
dependencies of both MCTS and CTS.

Add a whitelist as a short term solution.

Test: m cts EXCLUDE_MCTS=true
Bug: 349372705
BYPASS_INCLUSIVE_LANGUAGE_REASON=for mcts only
(cherry picked from https://android-review.googlesource.com/q/commit:9005bb61f7e955536ac786ccf38f41aae8f0665c)
Merged-In: I26ada6da95a8b3547de9e54781b744facb121b05
Change-Id: I26ada6da95a8b3547de9e54781b744facb121b05
This commit is contained in:
Yihan Dong 2024-06-26 14:59:35 +08:00 committed by Android Build Coastguard Worker
parent 37630fb286
commit c4fa907a4e

View file

@ -717,12 +717,14 @@ else
endif
ifeq ($(EXCLUDE_MCTS),true)
ifeq (,$(filter $(LOCAL_MODULE),$(mcts_whitelist)))
ifneq (,$(test_config))
ifneq (,$(filter mcts-%,$(LOCAL_COMPATIBILITY_SUITE)))
LOCAL_COMPATIBILITY_SUITE := $(filter-out cts,$(LOCAL_COMPATIBILITY_SUITE))
endif
endif
endif
endif
ifneq (true,$(LOCAL_UNINSTALLABLE_MODULE))