Skip to content

Commit

Permalink
cmd/go: skip TestGoInstallErrorOnCrossCompileToBin in short mode
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: David Crawshaw <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
ianlancetaylor committed Jul 21, 2015
1 parent 2e38b35 commit 72921c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/go/go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72921c6

Please sign in to comment.