]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: don't run TestTestRaceInstall in short mode
authorIan Lance Taylor <iant@golang.org>
Fri, 28 Apr 2017 17:52:10 +0000 (10:52 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 28 Apr 2017 18:34:49 +0000 (18:34 +0000)
Fixes #20158

Change-Id: Iefa9a33569eb805f5ab678d17c37787835bc7efa
Reviewed-on: https://go-review.googlesource.com/42134
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/go_test.go

index e6c745ef8c4bfe1c0c10b183e476ba03bffcf82e..8cb5867c1ebf0c36340fd7fadeabc44a192fae3e 100644 (file)
@@ -2240,6 +2240,9 @@ func TestTestRaceInstall(t *testing.T) {
        if !canRace {
                t.Skip("no race detector")
        }
+       if testing.Short() && testenv.Builder() == "" {
+               t.Skip("don't rebuild the standard library in short mode")
+       }
 
        tg := testgo(t)
        defer tg.cleanup()