From 324ffb27852e853919452890c200f1af8c8b6f49 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Fri, 6 Nov 2015 11:22:28 -0800 Subject: [PATCH] Tag "tests" alone doesn't prevent including emma.jar Only if an app has LOCAL_INSTRUMENTATION_FOR, it can get the emma classes from the target app and we don't need to instrument the test app itself. Change-Id: If0fba50ddae757254fc58ca104d729d61603fd78 --- core/package_internal.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/package_internal.mk b/core/package_internal.mk index a2cbe3192..cb77e7609 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -176,7 +176,7 @@ endif # LOCAL_JACK_ENABLED ifeq (true,$(EMMA_INSTRUMENT)) ifndef LOCAL_EMMA_INSTRUMENT # No emma for test apks. -ifeq (,$(filer tests,$(LOCAL_MODULE_TAGS))$(LOCAL_INSTRUMENTATION_FOR)) +ifeq (,$(LOCAL_INSTRUMENTATION_FOR)) LOCAL_EMMA_INSTRUMENT := true endif # No test apk endif # LOCAL_EMMA_INSTRUMENT is not set