summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Dan Shi <dshi@google.com> 2024-01-30 00:47:11 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-01-30 00:47:11 +0000
commitd1960fc57c42f60e92a50faa17766b576f214077 (patch)
treeeb3f9cc9fc945ff0b2aadc1e66a7f35bcdbfcfa2 /java/java.go
parent06cd0f70a718a15bec871057e97ff652cef96355 (diff)
parent5bde2e2ca9997982e8f787dfaeb23e56bbe01915 (diff)
Support test runnner option in auto generated test configs am: 5bde2e2ca9
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/26053802 Change-Id: If45f3a54fccac34c3f3244e75ee9c19f1452d1dc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 683e54682..0eb251815 100644
--- a/java/java.go
+++ b/java/java.go
@@ -931,6 +931,10 @@ type TestOptions struct {
// Extra <option> tags to add to the auto generated test xml file. The "key"
// is optional in each of these.
Tradefed_options []tradefed.Option
+
+ // Extra <option> tags to add to the auto generated test xml file under the test runner, e.g., AndroidJunitTest.
+ // The "key" is optional in each of these.
+ Test_runner_options []tradefed.Option
}
type testProperties struct {
@@ -1213,6 +1217,7 @@ func (j *Test) generateAndroidBuildActionsWithConfig(ctx android.ModuleContext,
TestSuites: j.testProperties.Test_suites,
Config: configs,
OptionsForAutogenerated: j.testProperties.Test_options.Tradefed_options,
+ TestRunnerOptions: j.testProperties.Test_options.Test_runner_options,
AutoGenConfig: j.testProperties.Auto_gen_config,
UnitTest: j.testProperties.Test_options.Unit_test,
DeviceTemplate: "${JavaTestConfigTemplate}",