summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2021-03-14 00:04:51 +0000
committerPaul Duffin <paulduffin@google.com>2021-03-18 08:02:38 +0000
commit1efdb3018274d1e101b9091884377f1d59a866fb (patch)
treeb23a08d6af143b6a0990413c16f6bde4322486e1 /java/java_test.go
parent3d9f268437bafec8652dd9a317154b3b32485b2e (diff)
Remove javaMockFS()
Also, removes the workaround that allowed preparers to override files added in javaMockFS(). The performance of the java tests was determined by running: m nothing rm -fr out/soong/.bootstrap/soong-java/test/ time m nothing Prior to starting this work that returned: real 1m30.060s user 33m3.028s sys 13m25.413s Immediately prior to this change that returned: real 1m2.777s user 14m14.352s sys 9m40.745s After applying this change that returned: real 0m20.282s user 3m7.429s sys 0m43.601s So, this reduced the real time cost of running the java tests from 90 seconds to 20 seconds. Bug: 182638834 Test: m nothing Change-Id: I30490fd40ddb0684a5a4975ce1811bab5dc79e4e
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/java/java_test.go b/java/java_test.go
index 2cc66169b..f4b8c9f65 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -64,8 +64,6 @@ var javaFixtureFactory = android.NewFixtureFactory(
ctx.RegisterPreSingletonType("overlay", OverlaySingletonFactory)
ctx.RegisterPreSingletonType("sdk_versions", sdkPreSingletonFactory)
}),
- javaMockFS().AddToFixture(),
- PrepareForTestWithJavaSdkLibraryFiles,
dexpreopt.PrepareForTestWithDexpreopt,
)