Merge "sepolicy : check if missing dependencies are allowed" am: 093c870e67

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2253074

Change-Id: Idda66a62e55b9d1a575ccf243317594259d33f4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Pawan Wagh 2022-10-14 18:37:34 +00:00 committed by Automerger Merge Worker
commit d1c05f92bb

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