diff options
| author | Ian Lance Taylor <iant@golang.org> | 2017-04-28 10:52:10 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2017-04-28 18:34:49 +0000 |
| commit | 60db9fb6bccde26f5384978a3f64a6f409a515bc (patch) | |
| tree | 4c130a259095f1fb835b6c38c586124ab66bed2f /src | |
| parent | 585be4639b927430189fa8197985816aec3e88cd (diff) | |
| download | go-60db9fb6bccde26f5384978a3f64a6f409a515bc.tar.xz | |
cmd/go: don't run TestTestRaceInstall in short mode
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>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/go_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index e6c745ef8c..8cb5867c1e 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -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() |
