Merge "sepolicy : check if missing dependencies are allowed"

This commit is contained in:
Pawan Wagh 2022-10-14 18:04:55 +00:00 committed by Gerrit Code Review
commit 093c870e67

View file

@ -34,7 +34,7 @@ func addFuzzerConfigDeps(ctx android.BottomUpMutatorContext) {
if _, ok := ctx.Module().(*fuzzerBindingsTestModule); ok {
for _, fuzzers := range ServiceFuzzerBindings {
for _, fuzzer := range fuzzers {
if !ctx.OtherModuleExists(fuzzer) {
if !ctx.OtherModuleExists(fuzzer) && !ctx.Config().AllowMissingDependencies() {
panic(fmt.Errorf("Fuzzer doesn't exist : %s", fuzzer))
}
}