]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: don't run TestInstalls in short mode
authorIan Lance Taylor <iant@golang.org>
Mon, 20 Jul 2015 01:20:06 +0000 (18:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 20 Jul 2015 03:27:22 +0000 (03:27 +0000)
It changes GOROOT, so we shouldn't run it in short mode.  Also, it's
fairly slow.

Update #11779.

Change-Id: I3d3344954cf9b2ac70070c878a67cb65ac8fd85c
Reviewed-on: https://go-review.googlesource.com/12364
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/go/go_test.go

index 804901cb5a89e36b85671e6d90a74be0e2a22c36..93f6cadf66e671042a73aebc701519132de46f09 100644 (file)
@@ -1207,6 +1207,10 @@ func TestGoGetNonPkg(t *testing.T) {
 }
 
 func TestInstalls(t *testing.T) {
+       if testing.Short() {
+               t.Skip("don't install into GOROOT in short mode")
+       }
+
        tg := testgo(t)
        defer tg.cleanup()
        tg.parallel()