OSDN Git Service

Tag "tests" alone doesn't prevent including emma.jar
authorYing Wang <wangying@google.com>
Fri, 6 Nov 2015 19:22:28 +0000 (11:22 -0800)
committerYing Wang <wangying@google.com>
Fri, 6 Nov 2015 19:22:28 +0000 (11:22 -0800)
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

index a2cbe31..cb77e76 100644 (file)
@@ -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