Skip to content

Commit 8ac4999

Browse files
committed
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
1 parent 5306119 commit 8ac4999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/pack/pack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func TestHello(t *testing.T) {
195195
out := run("go", "env")
196196
i := strings.Index(out, "GOCHAR=\"")
197197
if i < 0 {
198-
t.Fatal("cannot find GOCHAR in 'go env' output")
198+
t.Fatal("cannot find GOCHAR in 'go env' output:\n", out)
199199
}
200200
char := out[i+8 : i+9]
201201
run("go", "build", "cmd/pack") // writes pack binary to dir

0 commit comments

Comments
 (0)