Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e32d414 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Exclude mcts tests from cts based on the env config" into main

parents c0c2e5f2 efb72f14
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -716,6 +716,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,