diff options
author | 2021-03-29 00:56:32 +0100 | |
---|---|---|
committer | 2021-03-29 17:29:30 +0100 | |
commit | 0aafcbfd2d5f377fe252670b389739fcf1206fa2 (patch) | |
tree | 3fa6f1b23876d547723bd3bfc13f39d2dd6002e7 /android/testing.go | |
parent | a5b8135bdf2237afaab8db3ff24ff1c16e01c6f4 (diff) |
Add StringsRelativeToTop
Needed for some follow up changes.
Bug: 183650682
Test: m nothing
Change-Id: Ic14cb4f4592d887dd897989482d540e12065c0fe
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go index 5813d74f3..bfea6c514 100644 --- a/android/testing.go +++ b/android/testing.go @@ -1051,3 +1051,9 @@ func StringPathsRelativeToTop(soongOutDir string, paths []string) []string { func StringRelativeToTop(config Config, command string) string { return normalizeStringRelativeToTop(config, command) } + +// StringsRelativeToTop will return a new slice such that each item in the new slice is the result +// of calling StringRelativeToTop on the corresponding item in the input slice. +func StringsRelativeToTop(config Config, command []string) []string { + return normalizeStringArrayRelativeToTop(config, command) +} |