Merge "Enable coverage universally if COVERAGE_PATHS includes "*""
am: 7abf560cb0
Change-Id: I3455ceca75450f15b68692e7ce52c9092e729528
This commit is contained in:
committed by
android-build-merger
commit
6637d37544
@@ -862,7 +862,7 @@ func (c *deviceConfig) NativeCoverageEnabled() bool {
|
|||||||
func (c *deviceConfig) CoverageEnabledForPath(path string) bool {
|
func (c *deviceConfig) CoverageEnabledForPath(path string) bool {
|
||||||
coverage := false
|
coverage := false
|
||||||
if c.config.productVariables.CoveragePaths != nil {
|
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
|
coverage = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user