Update TestNonExistentPropertyInSoongConfigModule

with new expected error message that reflects the real unrecognized
property

Test: TestNonExistentPropertyInSoongConfigModule and CI

Bug: 171232169
Change-Id: I5af8e62b12a80c4891d7f3b57bbf4be456b2a798
This commit is contained in:
Zi Wang 2023-10-30 14:42:44 -07:00
parent 87e4128270
commit fe152e302a

View file

@ -376,8 +376,7 @@ func TestNonExistentPropertyInSoongConfigModule(t *testing.T) {
prepareForSoongConfigTestModule,
FixtureWithRootAndroidBp(bp),
).ExtendWithErrorHandler(FixtureExpectsAllErrorsToMatchAPattern([]string{
// TODO(b/171232169): improve the error message for non-existent properties
`unrecognized property "soong_config_variables`,
`unrecognized property "soong_config_variables.feature1.made_up_property`,
})).RunTest(t)
}