diff options
author | Roland Levillain <rpl@google.com> | 2020-06-15 18:41:03 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-06-15 18:41:03 +0000 |
commit | d38ab21c6ecb08763e10f2bcba4ef4243bccc9df (patch) | |
tree | ce7d139a89930dd0608b3e3b70fdf1caf66b5e54 /java/java.go | |
parent | c41c1a9d13de2ca4bedb5eeaa0b8f8dbf44a1116 (diff) | |
parent | ada1270ef8796ff436a08ff958033c9c51b94bd9 (diff) |
Merge "Introduce product variables to select Java code coverage paths in Soong."
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 13f9f2fbf..ab8f859b6 100644 --- a/java/java.go +++ b/java/java.go @@ -601,7 +601,9 @@ type jniLib struct { } func (j *Module) shouldInstrument(ctx android.BaseModuleContext) bool { - return j.properties.Instrument && ctx.Config().IsEnvTrue("EMMA_INSTRUMENT") + return j.properties.Instrument && + ctx.Config().IsEnvTrue("EMMA_INSTRUMENT") && + ctx.DeviceConfig().JavaCoverageEnabledForPath(ctx.ModuleDir()) } func (j *Module) shouldInstrumentStatic(ctx android.BaseModuleContext) bool { |