Merge "Enable coverage universally if COVERAGE_PATHS includes "*"" am: 7abf560cb0 am: 6637d37544

am: c396834992

Change-Id: I24b02a862613418cc404e860cfe01e5028a4e7a5
This commit is contained in:
Pirama Arumuga Nainar 2019-03-04 09:02:55 -08:00 committed by android-build-merger
commit 956c2c64c7

View file

@ -862,7 +862,7 @@ func (c *deviceConfig) NativeCoverageEnabled() bool {
func (c *deviceConfig) CoverageEnabledForPath(path string) bool {
coverage := false
if c.config.productVariables.CoveragePaths != nil {
if PrefixInList(path, c.config.productVariables.CoveragePaths) {
if InList("*", c.config.productVariables.CoveragePaths) || PrefixInList(path, c.config.productVariables.CoveragePaths) {
coverage = true
}
}