]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/pack: dump output of command of "go env" command in test
authorRob Pike <r@golang.org>
Wed, 19 Feb 2014 23:01:50 +0000 (15:01 -0800)
committerRob Pike <r@golang.org>
Wed, 19 Feb 2014 23:01:50 +0000 (15:01 -0800)
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

src/cmd/pack/pack_test.go

index 427ba8b30da7cef0a2ef65c268905fbef014afb6..a073fa45210b3febb98de36ac92ccc7729e71167 100644 (file)
@@ -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