From e7a055c6a394e5082e2ff643220255df7f775986 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Sun, 7 Mar 2021 15:46:33 +0000 Subject: [PATCH] Add preparer for test with variables Bug: 181070625 Test: m nothing Change-Id: I101826d88e67c63a58007f20f8e24d574dd7c99b --- android/variable.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/android/variable.go b/android/variable.go index dd000ad22..be12a0ad9 100644 --- a/android/variable.go +++ b/android/variable.go @@ -24,11 +24,17 @@ import ( ) func init() { - PreDepsMutators(func(ctx RegisterMutatorsContext) { + registerVariableBuildComponents(InitRegistrationContext) +} + +func registerVariableBuildComponents(ctx RegistrationContext) { + ctx.PreDepsMutators(func(ctx RegisterMutatorsContext) { ctx.BottomUp("variable", VariableMutator).Parallel() }) } +var PrepareForTestWithVariables = FixtureRegisterWithContext(registerVariableBuildComponents) + type variableProperties struct { Product_variables struct { Platform_sdk_version struct {