summaryrefslogtreecommitdiff
path: root/apex/bootclasspath_fragment_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-12-18 13:45:58 -0800
committer Colin Cross <ccross@android.com> 2025-02-03 22:19:24 -0800
commit09dbc010b0dd9055f919e639467691269fb15264 (patch)
treedd0a77a1215ac13f3bb568f0e851d8058453a4a6 /apex/bootclasspath_fragment_test.go
parent697f25de1354350472ac0d9ae7392faffb74358c (diff)
Correctly compute externalDep for dependencies of override_apex modules
The externalDep computation in WalkPayloadDeps was comparing ctx.ModuleName() against InApexVariants, but override_apex modules create an extra variation of the base apex, so ctx.ModuleName() doesn't match the apex variation name. Use the override name instead of the module name for override apex variations. Bug: 372543712 Test: go test ./apex Change-Id: If7a92ca0034bb37f6b0fc7b194ea55c918469d08
Diffstat (limited to 'apex/bootclasspath_fragment_test.go')
-rw-r--r--apex/bootclasspath_fragment_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/apex/bootclasspath_fragment_test.go b/apex/bootclasspath_fragment_test.go
index d0bff625d..a650d1146 100644
--- a/apex/bootclasspath_fragment_test.go
+++ b/apex/bootclasspath_fragment_test.go
@@ -242,6 +242,7 @@ func TestBootclasspathFragmentInArtApex(t *testing.T) {
apex_available: [
"com.android.art",
],
+ min_sdk_version: "33",
}
`, content)
}