Merge "apex: skip apex_sepolicy_tests for test apex" into main am: 47f87dddb3 am: ca4c122503

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2954769

Change-Id: Ib98ee2e87450995c8c5c95b558e5ec0e51c24e62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han
2024-02-08 02:38:46 +00:00
committed by Automerger Merge Worker

View File

@@ -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 {