commit | 5a8279f285fe94e1b01091af97c46aa8dcf7a456 | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Wed Dec 18 22:07:15 2019 +0100 |
committer | Marcel van Lohuizen <mpvl@golang.org> | Wed Dec 18 21:08:43 2019 +0000 |
tree | 84252e817cb466f53d3ffec6f6bd51da17ce0aab | |
parent | a32d5dd68f1b43f458f9fec1cb05ceda04de9f69 [diff] |
cmd/cue/cmd: fix Windows compatibility of test Change-Id: Ia689ed8352909e7150b263762cc7adbe5afe4fad Reviewed-on: https://cue-review.googlesource.com/c/cue/+/4441 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
diff --git a/cmd/cue/cmd/testdata/script/cmd_dep.txt b/cmd/cue/cmd/testdata/script/cmd_dep.txt index dcd7ec4..67d3fe8 100644 --- a/cmd/cue/cmd/testdata/script/cmd_dep.txt +++ b/cmd/cue/cmd/testdata/script/cmd_dep.txt
@@ -2,12 +2,13 @@ cmp stdout expect-stdout -- expect-stdout -- -{"b":"cue\n"} +{"b":"cue"} -- task_tool.cue -- package home import ( "encoding/json" + "strings" "tool/cli" "tool/exec" ) @@ -23,7 +24,9 @@ stdout: string } task: out: cli.Print & { - text: json.Marshal(foo & { a :: task.name.stdout }) + text: json.Marshal(foo & { + a :: strings.TrimSpace(task.name.stdout) + }) } }