]> Cypherpunks repositories - gostls13.git/commit
cmd/go: shorten TestScript/test_shuffle and skip it in short mode
authorBryan C. Mills <bcmills@google.com>
Tue, 10 Jan 2023 20:59:12 +0000 (15:59 -0500)
committerGopher Robot <gobot@golang.org>
Thu, 19 Jan 2023 20:46:11 +0000 (20:46 +0000)
commitc16c2c49e2fa98ae551fc6335215fadd62d33542
tree511f11dd7b86afa615fbed3ec8c4d4484194046e
parent2f8f51724ad2a3509603d53d8a850f9146e4016f
cmd/go: shorten TestScript/test_shuffle and skip it in short mode

test_shuffle was added in CL 310033. It takes about 4½ seconds on my
workstation prior to this CL, most of which is spent linking and
running test binaries in 'go test'.

We can reduce that time somewhat (to 3¾ seconds) by simply running the
test fewer times (cases of 'off', 'on', positive, zero, and negative
values seem sufficient), but we should also avoid that linking
overhead at all in short mode.

Fixes #57709.

Change-Id: I908a70435ccfb1ca16ed23aec17512bf2b267b21
Reviewed-on: https://go-review.googlesource.com/c/go/+/461455
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/cmd/go/testdata/script/test_shuffle.txt