From: Ian Lance Taylor Date: Tue, 21 Jul 2015 18:17:08 +0000 (-0700) Subject: cmd/go: skip TestGoInstallErrorOnCrossCompileToBin in short mode X-Git-Tag: go1.5beta3~133 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=72921c663d7df47bfc9b78766366dbfaa55a0915;p=gostls13.git cmd/go: skip TestGoInstallErrorOnCrossCompileToBin in short mode That test will install cmd/pack for linux_386; we don't want to change GOROOT in short mode. Change-Id: I4b00c578a99779a13c558208bfd4115f8f0513fa Reviewed-on: https://go-review.googlesource.com/12481 Run-TryBot: Ian Lance Taylor Reviewed-by: David Crawshaw TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index aebb966b02..a6353f580f 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -746,6 +746,10 @@ func TestGoInstallDetectsRemovedFiles(t *testing.T) { } func TestGoInstallErrorOnCrossCompileToBin(t *testing.T) { + if testing.Short() { + t.Skip("don't install into GOROOT in short mode") + } + tg := testgo(t) defer tg.cleanup() tg.tempFile("src/mycmd/x.go", `package main