BugID:17865306: Search TEST_COMPONENTS with real name
@@ -25,8 +25,6 @@ COMPONENT_DIRECTORIES := . \
drivers \
security
-TEST_COMPONENT_DIRECTORIES := test
-
ifneq ($(ONLY_BUILD_LIBRARY), yes)
COMPONENT_DIRECTORIES += $(OUTPUT_DIR)/syscall
COMPONENT_DIRECTORIES += $(OUTPUT_DIR)
@@ -46,9 +44,7 @@ GET_BARE_LOCATION =$(patsubst $(call ESCAPE_BACKSLASHES,$(SOURCE_ROOT))%,%,$(str
define PREPROCESS_TEST_COMPONENT
$(if $(filter yts,$(COMPONENTS)), \
$(if $(test), $(eval TEST_COMPONENTS := $(strip $(subst $(COMMA), $(SPACE), $(test)))),) \
-$(if $(TEST_COMPONENTS), $(call RECURSE_DIR_COMPONENT_SEARCH, $(patsubst %/,%,$(TEST_COMPONENT_DIRECTORIES)), TEST_COMPONENT_LIST) \
-$(eval TEST_COMPONENTS := $(addprefix %., $(addsuffix _test, $(TEST_COMPONENTS)))) \
-$(eval COMPONENTS += $(filter $(TEST_COMPONENTS), $(subst /,.,$(strip $(TEST_COMPONENT_LIST)))))))
+$(eval COMPONENTS += $(TEST_COMPONENTS)))
endef
#####################################################################################
