diff options
author | 2023-05-05 15:03:24 +0000 | |
---|---|---|
committer | 2023-05-05 15:03:24 +0000 | |
commit | 3d08c388b9e00cf98510cbd1408b5ffc3524e2ff (patch) | |
tree | dea5843baa19eff63513a2e2b04c628c1ad0bf87 /android/testing.go | |
parent | 7b845e808f07a607a9ecf630eea00a334636f0c5 (diff) |
Revert "Generate app profiles even if dexpreopt is disabled."
Revert submission 2574032
Reason for revert: DroidMonitor-triggered revert due to breakage <https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=aosp_cf_riscv64_minidroid-userdebug&lkgb=10069333&lkbb=10075041&fkbb=10071083>, bug <b/280902279>
Reverted changes: /q/submissionid:2574032
Change-Id: Ia9d05f3b7439604eb4a4b4100f46879fe11f5820
BUG: <280902279>
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/android/testing.go b/android/testing.go index 2a9c6584e..fc39a9c7a 100644 --- a/android/testing.go +++ b/android/testing.go @@ -813,20 +813,6 @@ func normalizePathRelativeToTop(path Path) Path { return path.RelativeToTop() } -func allOutputs(p BuildParams) []string { - outputs := append(WritablePaths(nil), p.Outputs...) - outputs = append(outputs, p.ImplicitOutputs...) - if p.Output != nil { - outputs = append(outputs, p.Output) - } - return outputs.Strings() -} - -// AllOutputs returns all 'BuildParams.Output's and 'BuildParams.Outputs's in their full path string forms. -func (p TestingBuildParams) AllOutputs() []string { - return allOutputs(p.BuildParams) -} - // baseTestingComponent provides functionality common to both TestingModule and TestingSingleton. type baseTestingComponent struct { config Config @@ -968,7 +954,12 @@ func (b baseTestingComponent) buildParamsFromOutput(file string) TestingBuildPar func (b baseTestingComponent) allOutputs() []string { var outputFullPaths []string for _, p := range b.provider.BuildParamsForTests() { - outputFullPaths = append(outputFullPaths, allOutputs(p)...) + outputs := append(WritablePaths(nil), p.Outputs...) + outputs = append(outputs, p.ImplicitOutputs...) + if p.Output != nil { + outputs = append(outputs, p.Output) + } + outputFullPaths = append(outputFullPaths, outputs.Strings()...) } return outputFullPaths } |