aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pack
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2014-02-19 15:01:50 -0800
committerRob Pike <r@golang.org>2014-02-19 15:01:50 -0800
commit8ac499916e2ea58e04d756f692a85c587b11a39e (patch)
treed882cce0203ab191e6ef74647285c45d912f0ff6 /src/cmd/pack
parent53061193f1b35aa6eda405909db41900fdc2c5de (diff)
downloadgo-8ac499916e2ea58e04d756f692a85c587b11a39e.tar.gz
go-8ac499916e2ea58e04d756f692a85c587b11a39e.zip
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
Diffstat (limited to 'src/cmd/pack')
-rw-r--r--src/cmd/pack/pack_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/pack/pack_test.go b/src/cmd/pack/pack_test.go
index 427ba8b30d..a073fa4521 100644
--- a/src/cmd/pack/pack_test.go
+++ b/src/cmd/pack/pack_test.go
@@ -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