Commit 8ac49991 authored by Rob Pike's avatar Rob Pike

cmd/pack: dump output of command of "go env" command in test

Get more information to help understand build failure on Plan 9.
Also Windows.
(TestHello is failing because GOCHAR does not appear in output.
What does?)

Update #7362

LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/66070044
parent 53061193
......@@ -195,7 +195,7 @@ func TestHello(t *testing.T) {
out := run("go", "env")
i := strings.Index(out, "GOCHAR=\"")
if i < 0 {
t.Fatal("cannot find GOCHAR in 'go env' output")
t.Fatal("cannot find GOCHAR in 'go env' output:\n", out)
}
char := out[i+8 : i+9]
run("go", "build", "cmd/pack") // writes pack binary to dir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment