Move some java test setup later am: c28bb0b8f9 am: 7e2b9c48ca

am: 7cb6f9e601

Change-Id: Ib0924d35bc9cd844a071e5f8729f5e2f7b8b6745
This commit is contained in:
Colin Cross
2019-03-04 19:40:03 -08:00
committed by android-build-merger
2 changed files with 6 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ import (
"android/soong/android"
"android/soong/cc"
"android/soong/dexpreopt"
"android/soong/genrule"
)
@@ -101,8 +102,6 @@ func testContext(config android.Config, bp string,
ctx.BottomUp("begin", cc.BeginMutator).Parallel()
})
ctx.Register()
bp += GatherRequiredDepsForTest()
mockFS := map[string][]byte{
@@ -187,6 +186,11 @@ func testContext(config android.Config, bp string,
func run(t *testing.T, ctx *android.TestContext, config android.Config) {
t.Helper()
pathCtx := android.PathContextForTesting(config, nil)
setDexpreoptTestGlobalConfig(config, dexpreopt.GlobalConfigForTests(pathCtx))
ctx.Register()
_, errs := ctx.ParseFileList(".", []string{"Android.bp", "prebuilts/sdk/Android.bp"})
android.FailIfErrored(t, errs)
_, errs = ctx.PrepareBuildActions(config)