summaryrefslogtreecommitdiff
path: root/java/system_modules_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-08-12 16:53:42 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-08-12 16:53:42 +0000
commit08b606153943332075a202450162b02f3eea523a (patch)
treecc5ea4861fa71eb1c12326ae28fbca80bf86cb40 /java/system_modules_test.go
parent9dfccb91a5dfc1bf3637a52165081a54c81c159d (diff)
parentb61c2269435276862c927f40915e9888ae7908f4 (diff)
Merge changes If313580b,I68d50d68 into main
* changes: Use a provider for systems modules Add PrepareForTestWithBuildFlag
Diffstat (limited to 'java/system_modules_test.go')
-rw-r--r--java/system_modules_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/java/system_modules_test.go b/java/system_modules_test.go
index 336dd2134..1a8d0b5d5 100644
--- a/java/system_modules_test.go
+++ b/java/system_modules_test.go
@@ -182,11 +182,7 @@ func TestMultipleSystemModulesPrebuilts(t *testing.T) {
for _, tc := range testCases {
res := android.GroupFixturePreparers(
prepareForJavaTest,
- android.FixtureModifyProductVariables(func(variables android.FixtureProductVariables) {
- variables.BuildFlags = map[string]string{
- "RELEASE_APEX_CONTRIBUTIONS_ADSERVICES": "myapex_contributions",
- }
- }),
+ android.PrepareForTestWithBuildFlag("RELEASE_APEX_CONTRIBUTIONS_ADSERVICES", "myapex_contributions"),
).RunTestWithBp(t, fmt.Sprintf(bp, tc.selectedDependencyName))
// check that rdep gets the correct variation of system_modules