Add forgotten apex prefix to Jacoco boot image module.

This is a follow-up for https://r.android.com/1292915, which introduced
two-column format for the components of the boot jar list. This CL
fixes build failure for the coverage build.

Test: m EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true
Change-Id: Ib8b156bf81943fe07084cbce5e7e9bf70e759a5d
This commit is contained in:
Ulya Trafimovich
2020-05-04 12:16:25 +01:00
parent 266a66e20c
commit 817133ee2a

View File

@@ -117,7 +117,7 @@ func genBootImageConfigs(ctx android.PathContext) map[string]*bootImageConfig {
artModules := global.ArtApexJars
// With EMMA_INSTRUMENT_FRAMEWORK=true the Core libraries depend on jacoco.
if ctx.Config().IsEnvTrue("EMMA_INSTRUMENT_FRAMEWORK") {
artModules = append(artModules, "jacocoagent")
artModules = append(artModules, "com.android.art:jacocoagent")
}
frameworkModules := android.RemoveListFromList(global.BootJars, artModules)