mirror of https://github.com/docker/docs.git
`TestParseWords` needs to use the `tokenEscape` for one of the test cases, but `tokenEscape` was not being set unless tests ran in a specific order. This sets a default value for `tokenEscape`... `\`... so that tests that rely on this global are not affected by test ordering. This is the simplest fix for these cases. Ideally the token should not be set as a global but rather passed down, which is a much larger change. Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit df167d3ff04cdc90012c8ca39647662ad69e6715) Signed-off-by: Tibor Vass <tibor@docker.com> |
||
|---|---|---|
| .. | ||
| command | ||
| parser | ||
| bflag.go | ||
| bflag_test.go | ||
| builder.go | ||
| builder_unix.go | ||
| builder_windows.go | ||
| dispatchers.go | ||
| dispatchers_unix.go | ||
| dispatchers_windows.go | ||
| dispatchers_windows_test.go | ||
| envVarTest | ||
| evaluator.go | ||
| evaluator_test.go | ||
| evaluator_unix.go | ||
| evaluator_windows.go | ||
| internals.go | ||
| internals_test.go | ||
| internals_unix.go | ||
| internals_windows.go | ||
| internals_windows_test.go | ||
| shell_parser.go | ||
| shell_parser_test.go | ||
| support.go | ||
| support_test.go | ||
| wordsTest | ||