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

am: 6637d37544

Change-Id: I540bbd18fdcc6dc093c77fdc2d4b26c35add1dd2
This commit is contained in:
Pirama Arumuga Nainar
2019-03-04 08:50:51 -08:00
committed by android-build-merger

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
}
}