Merge "Build System: Add variable for copying test config"

This commit is contained in:
Treehugger Robot 2018-08-06 17:58:12 +00:00 committed by Gerrit Code Review
commit ef2c15314b
2 changed files with 6 additions and 2 deletions

View file

@ -583,8 +583,11 @@ else
$(eval n := $(or $(word 2,$(p)),$(notdir $(word 1, $(p))))) \
$(foreach dir, $(call compatibility_suite_dirs,$(suite)), \
$(s):$(dir)/$(n)))))
test_config := $(wildcard $(LOCAL_PATH)/AndroidTest.xml)
ifeq (,$(LOCAL_TEST_CONFIG))
test_config := $(wildcard $(LOCAL_PATH)/AndroidTest.xml)
else
test_config := $(LOCAL_PATH)/$(LOCAL_TEST_CONFIG)
endif
ifeq (,$(test_config))
ifneq (true,$(is_native))
is_instrumentation_test := true

View file

@ -266,6 +266,7 @@ LOCAL_STATIC_LIBRARIES:=
LOCAL_STRIP_MODULE:=
LOCAL_SYSTEM_SHARED_LIBRARIES:=none
LOCAL_TARGET_REQUIRED_MODULES:=
LOCAL_TEST_CONFIG:=
LOCAL_TEST_CONFIG_OPTIONS:=
LOCAL_TEST_DATA:=
LOCAL_TEST_MODULE_TO_PROGUARD_WITH:=