summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorJulien Desprez <jdesprez@google.com>2021-03-15 13:07:53 -0700
committerJulien Desprez <jdesprez@google.com>2021-03-15 13:07:53 -0700
commitf666b151eb2fcda07f38a76e0dd05dd78aa5d0a7 (patch)
treef415bf3264fc256813bccaf5e65db775eb4e8dd2 /java/java.go
parent05f72de0837021c7f80133e22392a1a238b1c56f (diff)
Remove tradefed static_lib heuristic
Test: presubmit Bug: 180736967 Change-Id: I98b675dec086122e821caae9a9add8758d252724
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 036c7afd4..9bcceb3bd 100644
--- a/java/java.go
+++ b/java/java.go
@@ -2508,7 +2508,7 @@ func (j *TestHost) DepsMutator(ctx android.BottomUpMutatorContext) {
func (j *Test) GenerateAndroidBuildActions(ctx android.ModuleContext) {
if j.testProperties.Test_options.Unit_test == nil && ctx.Host() {
// TODO(b/): Clean temporary heuristic to avoid unexpected onboarding.
- defaultUnitTest := !inList("tradefed", j.properties.Static_libs) && !inList("tradefed", j.properties.Libs) && !inList("cts", j.testProperties.Test_suites)
+ defaultUnitTest := !inList("tradefed", j.properties.Libs) && !inList("cts", j.testProperties.Test_suites)
j.testProperties.Test_options.Unit_test = proptools.BoolPtr(defaultUnitTest)
}
j.testConfig = tradefed.AutoGenJavaTestConfig(ctx, j.testProperties.Test_config, j.testProperties.Test_config_template,