Skip to content

Commit 7c72dc7

Browse files
committed
cmd/go: skip TestScript on Plan 9 in short mode
TestScript is very slow on Plan 9 because this test is particularly i/o intensive. This is leading the plan9/386 and plan9/amd64 builders to time out. This test was already skipped on plan9/arm because arm is part of the "slow architectures" list. This change skips TestScript on Plan 9 on short mode. Change-Id: I3e68046dac825cd14fa8daca601c492cf11c6fff Reviewed-on: https://go-review.googlesource.com/c/go/+/614855 Reviewed-by: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: David du Colombier <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Bypass: Ian Lance Taylor <[email protected]>
1 parent 097b716 commit 7c72dc7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cmd/go/script_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ func TestScript(t *testing.T) {
4141
testenv.MustHaveGoBuild(t)
4242
testenv.SkipIfShortAndSlow(t)
4343

44+
if testing.Short() && runtime.GOOS == "plan9" {
45+
t.Skipf("skipping test in -short mode on %s", runtime.GOOS)
46+
}
47+
4448
srv, err := vcstest.NewServer()
4549
if err != nil {
4650
t.Fatal(err)

0 commit comments

Comments
 (0)