From 1f4531e768dc33cb045dc6982c576c27e5c2821e Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Wed, 7 Feb 2024 16:27:57 +0900 Subject: [PATCH] apex: skip apex_sepolicy_tests for test apex Test apexes are often configured incorrectly intentionally. Bug: 324005965 Test: m Change-Id: Ifddbca71b46a42cffa9923b0dd66cd5e2d8024e4 --- apex/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apex/builder.go b/apex/builder.go index 30788630b..40ccd2cc7 100644 --- a/apex/builder.go +++ b/apex/builder.go @@ -910,7 +910,7 @@ func (a *apexBundle) buildApex(ctx android.ModuleContext) { var validations android.Paths validations = append(validations, runApexLinkerconfigValidation(ctx, unsignedOutputFile.OutputPath, imageDir.OutputPath)) // TODO(b/279688635) deapexer supports [ext4] - if suffix == imageApexSuffix && ext4 == a.payloadFsType { + if !a.testApex && suffix == imageApexSuffix && ext4 == a.payloadFsType { validations = append(validations, runApexSepolicyTests(ctx, unsignedOutputFile.OutputPath)) } if !a.testApex && len(a.properties.Unwanted_transitive_deps) > 0 {