diff options
author | 2024-11-07 22:37:01 +0000 | |
---|---|---|
committer | 2024-11-07 22:37:01 +0000 | |
commit | 876b8038f99383c25401e79c9fead47305b13eec (patch) | |
tree | 4aec10e56d0c3d01160c0d6dd3100f7b94e066fe /sh/sh_binary.go | |
parent | 45dca5c8cc538392edbde4ee1077fc86509b2e38 (diff) |
Revert "test_module_config for sh_test"
This reverts commit 45dca5c8cc538392edbde4ee1077fc86509b2e38.
Reason for revert: DroidMonitor: Potential culprit for http://b/377964351 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Change-Id: Idd5e4b0d04b3c04dc1cfc4541615fc5f42a85c3e
Diffstat (limited to 'sh/sh_binary.go')
-rw-r--r-- | sh/sh_binary.go | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go index 320e97f19..853f3d368 100644 --- a/sh/sh_binary.go +++ b/sh/sh_binary.go @@ -15,7 +15,6 @@ package sh import ( - "fmt" "path/filepath" "strings" @@ -165,9 +164,6 @@ type TestProperties struct { // Test options. Test_options android.CommonTestOptions - - // a list of extra test configuration files that should be installed with the module. - Extra_test_configs []string `android:"path,arch_variant"` } type ShBinary struct { @@ -190,9 +186,8 @@ type ShTest struct { installDir android.InstallPath - data []android.DataPath - testConfig android.Path - extraTestConfigs android.Paths + data []android.DataPath + testConfig android.Path dataModules map[string]android.Path } @@ -476,7 +471,6 @@ func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) { HostTemplate: "${ShellTestConfigTemplate}", }) - s.extraTestConfigs = android.PathsForModuleSrc(ctx, s.testProperties.Extra_test_configs) s.dataModules = make(map[string]android.Path) ctx.VisitDirectDeps(func(dep android.Module) { depTag := ctx.OtherModuleDependencyTag(dep) @@ -516,27 +510,6 @@ func (s *ShTest) GenerateAndroidBuildActions(ctx android.ModuleContext) { installedData := ctx.InstallTestData(s.installDir, s.data) s.installedFile = ctx.InstallExecutable(s.installDir, s.outputFilePath.Base(), s.outputFilePath, installedData...) - - mkEntries := s.AndroidMkEntries()[0] - android.SetProvider(ctx, tradefed.BaseTestProviderKey, tradefed.BaseTestProviderData{ - TestcaseRelDataFiles: addArch(ctx.Arch().ArchType.String(), installedData.Paths()), - OutputFile: s.outputFilePath, - TestConfig: s.testConfig, - TestSuites: s.testProperties.Test_suites, - IsHost: false, - IsUnitTest: Bool(s.testProperties.Test_options.Unit_test), - MkInclude: mkEntries.Include, - MkAppClass: mkEntries.Class, - InstallDir: s.installDir, - }) -} - -func addArch(archType string, paths android.Paths) []string { - archRelPaths := []string{} - for _, p := range paths { - archRelPaths = append(archRelPaths, fmt.Sprintf("%s/%s", archType, p.Rel())) - } - return archRelPaths } func (s *ShTest) InstallInData() bool { @@ -560,9 +533,6 @@ func (s *ShTest) AndroidMkEntries() []android.AndroidMkEntries { entries.AddStrings("LOCAL_TEST_DATA_BINS", s.testProperties.Data_bins...) } entries.SetBoolIfTrue("LOCAL_COMPATIBILITY_PER_TESTCASE_DIRECTORY", Bool(s.testProperties.Per_testcase_directory)) - if len(s.extraTestConfigs) > 0 { - entries.AddStrings("LOCAL_EXTRA_FULL_TEST_CONFIGS", s.extraTestConfigs.Strings()...) - } s.testProperties.Test_options.SetAndroidMkEntries(entries) }, |