summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorRamy Medhat <abdelaal@google.com>2020-04-30 03:08:37 -0400
committerRamy Medhat <abdelaal@google.com>2020-05-27 06:52:46 -0400
commitc7965cda0540a0a487eea20fcdc4dacab7d0c349 (patch)
treeb061403c6b6752eb9ed7c6802be0bfe950c85290 /java/java_test.go
parent54d925e88dfebe4aab0538ab28a5ddae5e5a5a0b (diff)
Add support for Metalava implicit dependencies for remote execution.
Test: built aosp crosshatch userdebug with RBE_METALAVA=1 Change-Id: Ic64d98785e34717ef9bdad62b4885085f84f132a
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java_test.go b/java/java_test.go
index e03e57b78..9266d295d 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -1038,7 +1038,7 @@ func checkSystemModulesUseByDroidstubs(t *testing.T, ctx *android.TestContext, m
for _, i := range metalavaRule.Implicits {
systemJars = append(systemJars, i.Base())
}
- if len(systemJars) != 1 || systemJars[0] != systemJar {
+ if len(systemJars) < 1 || systemJars[0] != systemJar {
t.Errorf("inputs of %q must be []string{%q}, but was %#v.", moduleName, systemJar, systemJars)
}
}