Move the steps to build java test out of the test script.
This is because autoninja will soon stop working when running outside of
a goma context.
Change-Id: I9152a8a97804c130eb1168b9250b0019600c8d01
Bug: https://github.com/flutter/flutter/issues/84618
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/14720
Reviewed-by: Dan Field <dnfield@google.com>
Commit-Queue: Godofredo Contreras <godofredoc@google.com>
diff --git a/recipes/engine_unopt.expected/linux.json b/recipes/engine_unopt.expected/linux.json
index 3b1183d..3f047a3 100644
--- a/recipes/engine_unopt.expected/linux.json
+++ b/recipes/engine_unopt.expected/linux.json
@@ -1366,7 +1366,8 @@
"-j",
"1024",
"-C",
- "[CACHE]/builder/src/out/android_debug_unopt"
+ "[CACHE]/builder/src/out/android_debug_unopt",
+ "flutter/shell/platform/android:robolectric_tests"
],
"cwd": "[CACHE]/builder",
"env": {
@@ -1390,7 +1391,7 @@
"RECIPE_REPO[depot_tools]"
]
},
- "name": "build android_debug_unopt"
+ "name": "build android_debug_unopt flutter/shell/platform/android:robolectric_tests"
},
{
"cmd": [],
diff --git a/recipes/engine_unopt.expected/linux_lto.json b/recipes/engine_unopt.expected/linux_lto.json
index a5d5ac0..edb9daa 100644
--- a/recipes/engine_unopt.expected/linux_lto.json
+++ b/recipes/engine_unopt.expected/linux_lto.json
@@ -1363,7 +1363,8 @@
"-j",
"1024",
"-C",
- "[CACHE]/builder/src/out/android_debug_unopt"
+ "[CACHE]/builder/src/out/android_debug_unopt",
+ "flutter/shell/platform/android:robolectric_tests"
],
"cwd": "[CACHE]/builder",
"env": {
@@ -1387,7 +1388,7 @@
"RECIPE_REPO[depot_tools]"
]
},
- "name": "build android_debug_unopt"
+ "name": "build android_debug_unopt flutter/shell/platform/android:robolectric_tests"
},
{
"cmd": [],
diff --git a/recipes/engine_unopt.py b/recipes/engine_unopt.py
index befc7e7..df5133d 100644
--- a/recipes/engine_unopt.py
+++ b/recipes/engine_unopt.py
@@ -95,7 +95,7 @@
def BuildLinuxAndroid(api, swarming_task_id):
# Build Android Unopt and run tests
RunGN(api, '--android', '--unoptimized')
- Build(api, 'android_debug_unopt')
+ Build(api, 'android_debug_unopt', 'flutter/shell/platform/android:robolectric_tests')
RunTests(
api,
'android_debug_unopt',