diff options
author | Colin Cross <ccross@android.com> | 2019-02-28 11:00:01 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-03-04 18:11:53 +0000 |
commit | 0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d (patch) | |
tree | 822385829aba1ce8d913e4c8d9637cf7320015f7 /tradefed | |
parent | 7abf560cb0028bf8413a35f2fa71a4d528b6da67 (diff) | |
download | build_soong-0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d.tar.gz build_soong-0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d.tar.bz2 build_soong-0b9f31fb0834fd84bc4d5e3b99d67e80e6e2224d.zip |
Replace *Escape with *EscapeList
Follow the change to blueprint to make *Escape take and return a string
and add *EscapeList that take and return slices of strings. Fix up
a few places that were unnecessarily converting a string to a slice
and back to a string.
Test: m nothing
Change-Id: I3fa87de175522205f36544ef76aa2f04aef1b936
Diffstat (limited to 'tradefed')
-rw-r--r-- | tradefed/autogen.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tradefed/autogen.go b/tradefed/autogen.go index 6d9c2003..da5dabe6 100644 --- a/tradefed/autogen.go +++ b/tradefed/autogen.go @@ -67,7 +67,7 @@ func autogenTemplate(ctx android.ModuleContext, output android.WritablePath, tem } sort.Strings(options) extraOptions := strings.Join(options, "\n ") - extraOptions = proptools.NinjaAndShellEscape([]string{extraOptions})[0] + extraOptions = proptools.NinjaAndShellEscape(extraOptions) ctx.Build(pctx, android.BuildParams{ Rule: autogenTestConfig, |