Capture missing dependency error rules

Allow missing dependency errors to be tested by capturing the
missing dependency error rule instead of the originally requested
rule.

Test: all soong tests
Change-Id: Id2b23b9ee354cdafc44fb9adfaf8fe7bab973478
This commit is contained in:
Colin Cross
2019-06-10 15:15:17 -07:00
parent 2ffb9a8d7d
commit b88b3c5e77
2 changed files with 17 additions and 22 deletions

View File

@@ -179,7 +179,7 @@ func buildParamsFromRule(provider testBuildProvider, rule string) TestingBuildPa
func maybeBuildParamsFromDescription(provider testBuildProvider, desc string) TestingBuildParams {
for _, p := range provider.BuildParamsForTests() {
if p.Description == desc {
if strings.Contains(p.Description, desc) {
return newTestingBuildParams(provider, p)
}
}