summaryrefslogtreecommitdiff
path: root/android/mutator_test.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2024-10-09 15:29:27 -0700
committer Colin Cross <ccross@android.com> 2024-10-10 11:59:52 -0700
commit8a9628098bbed62f3af13021b434238308adc7c1 (patch)
tree4163340a4c49f0c0db0d9aa145c4fc99f7693e2a /android/mutator_test.go
parent2d2e68ffaf29af085201f5200db5938d6040b79c (diff)
Remove MutatorHandle.Parallel()
All mutators are parallel by default, remove the explicit Parallel() calls. Bug: 372540665 Test: all soong tests pass Flag: EXEMPT refactor Change-Id: I41e3a71bd13c75b7fceae91b1c4cfe678ab62df2
Diffstat (limited to 'android/mutator_test.go')
-rw-r--r--android/mutator_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/android/mutator_test.go b/android/mutator_test.go
index d8d4450c3..1d5f89042 100644
--- a/android/mutator_test.go
+++ b/android/mutator_test.go
@@ -238,7 +238,7 @@ func TestFinalDepsPhase(t *testing.T) {
if !strings.HasPrefix(ctx.ModuleName(), "common_dep") {
ctx.AddFarVariationDependencies([]blueprint.Variation{}, dep1Tag, "common_dep_1")
}
- }).Parallel()
+ })
ctx.Transition("variant", &testTransitionMutator{
split: func(ctx BaseModuleContext) []string {
return []string{"a", "b"}
@@ -251,7 +251,7 @@ func TestFinalDepsPhase(t *testing.T) {
if !strings.HasPrefix(ctx.ModuleName(), "common_dep") {
ctx.AddFarVariationDependencies([]blueprint.Variation{}, dep2Tag, "common_dep_2")
}
- }).Parallel()
+ })
ctx.BottomUp("final", func(ctx BottomUpMutatorContext) {
counter, _ := finalGot.LoadOrStore(ctx.Module().String(), &atomic.Int64{})
counter.(*atomic.Int64).Add(1)
@@ -259,7 +259,7 @@ func TestFinalDepsPhase(t *testing.T) {
counter, _ := finalGot.LoadOrStore(fmt.Sprintf("%s -> %s", ctx.Module().String(), mod), &atomic.Int64{})
counter.(*atomic.Int64).Add(1)
})
- }).Parallel()
+ })
})
ctx.RegisterModuleType("test", mutatorTestModuleFactory)