summaryrefslogtreecommitdiff
path: root/ci_tests
diff options
context:
space:
mode:
author mrziwang <mrziwang@google.com> 2025-03-12 21:12:07 +0000
committer Zi Wang <mrziwang@google.com> 2025-03-12 15:02:50 -0700
commitb9bce1e16b13dd359bbbe1d30d3edd81f419a4e5 (patch)
treef439e2f64fe903e428668922cc8ef51f3e0bf598 /ci_tests
parent18548fd4d847dea2090e8763d00f4d0ee22f21d0 (diff)
Exclude disabled modules in test_package
Test: CI Bug: 388850000 Bug: 402734167 Change-Id: I5fe44979151c4bf28a692dff244d844375ecb6a8
Diffstat (limited to 'ci_tests')
-rw-r--r--ci_tests/ci_test_package_zip.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci_tests/ci_test_package_zip.go b/ci_tests/ci_test_package_zip.go
index f8c4578b6..87ae6fda2 100644
--- a/ci_tests/ci_test_package_zip.go
+++ b/ci_tests/ci_test_package_zip.go
@@ -167,6 +167,9 @@ func createOutput(ctx android.ModuleContext, pctx android.PackageContext) androi
builder.Command().Text("mkdir").Flag("-p").Output(stagingDir)
builder.Temporary(stagingDir)
ctx.WalkDeps(func(child, parent android.Module) bool {
+ if !child.Enabled(ctx) {
+ return false
+ }
if android.EqualModules(parent, ctx.Module()) && ctx.OtherModuleDependencyTag(child) == testPackageZipDepTag {
// handle direct deps
extendBuilderCommand(ctx, child, builder, stagingDir, productOut, arch, secondArch)