diff options
| author | Jigar Thakkar <jigarthakkar@google.com> | 2022-12-20 16:24:20 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-12-20 16:24:20 +0000 |
| commit | 1d174b185fe8b69aad48c1bf1d324411cda79870 (patch) | |
| tree | 508087b596ebb3d99eb2f49551b840c7f3531178 /java/java.go | |
| parent | 1c6ca9493510ec0666de2864d9adbef7fbb72e7a (diff) | |
| parent | 77dc7d0839c53d76092e7b75ba3c3d4734542bbd (diff) | |
Merge "Revert "Allow adding extra tradefed options in the Android.bp file""
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/java/java.go b/java/java.go index 58132507b..b3abc9118 100644 --- a/java/java.go +++ b/java/java.go @@ -910,10 +910,6 @@ type TestOptions struct { // a list of extra test configuration files that should be installed with the module. Extra_test_configs []string `android:"path,arch_variant"` - - // Extra <option> tags to add to the auto generated test xml file. The "key" - // is optional in each of these. - Tradefed_options []tradefed.Option } type testProperties struct { @@ -1192,18 +1188,8 @@ func (j *Test) generateAndroidBuildActionsWithConfig(ctx android.ModuleContext, j.testProperties.Test_options.Unit_test = proptools.BoolPtr(defaultUnitTest) } - j.testConfig = tradefed.NewMaybeAutoGenTestConfigBuilder(ctx). - SetTestConfigProp(j.testProperties.Test_config). - SetTestTemplateConfigProp(j.testProperties.Test_config_template). - SetTestSuites(j.testProperties.Test_suites). - SetConfig(configs). - SetOptionsForAutogenerated(j.testProperties.Test_options.Tradefed_options). - SetAutoGenConfig(j.testProperties.Auto_gen_config). - SetUnitTest(j.testProperties.Test_options.Unit_test). - SetDeviceTemplate("${JavaTestConfigTemplate}"). - SetHostTemplate("${JavaHostTestConfigTemplate}"). - SetHostUnitTestTemplate("${JavaHostUnitTestConfigTemplate}"). - Build() + j.testConfig = tradefed.AutoGenJavaTestConfig(ctx, j.testProperties.Test_config, j.testProperties.Test_config_template, + j.testProperties.Test_suites, configs, j.testProperties.Auto_gen_config, j.testProperties.Test_options.Unit_test) j.data = android.PathsForModuleSrc(ctx, j.testProperties.Data) @@ -1248,13 +1234,8 @@ func (j *TestHelperLibrary) GenerateAndroidBuildActions(ctx android.ModuleContex } func (j *JavaTestImport) GenerateAndroidBuildActions(ctx android.ModuleContext) { - j.testConfig = tradefed.NewMaybeAutoGenTestConfigBuilder(ctx). - SetTestConfigProp(j.prebuiltTestProperties.Test_config). - SetTestSuites(j.prebuiltTestProperties.Test_suites). - SetDeviceTemplate("${JavaTestConfigTemplate}"). - SetHostTemplate("${JavaHostTestConfigTemplate}"). - SetHostUnitTestTemplate("${JavaHostUnitTestConfigTemplate}"). - Build() + j.testConfig = tradefed.AutoGenJavaTestConfig(ctx, j.prebuiltTestProperties.Test_config, nil, + j.prebuiltTestProperties.Test_suites, nil, nil, nil) j.Import.GenerateAndroidBuildActions(ctx) } |
