]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip the 'git' part of get_insecure_redirect in short mode
authorBryan C. Mills <bcmills@google.com>
Mon, 24 Apr 2023 17:48:29 +0000 (13:48 -0400)
committerBryan Mills <bcmills@google.com>
Thu, 27 Apr 2023 17:54:44 +0000 (17:54 +0000)
Invoking 'git' adds about 200ms to this test on a fast machine,
probably more on a slow one. (As a general habit we skip the
'git' tests uniformly in short mode.)

For #52545.

Change-Id: Iea6d86a8c9c8b0f1fe51888faf7f5fe7dd8f1eb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/488236
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/go/testdata/script/get_insecure_redirect.txt

index 2a37902215bf361f4232503d4c45c83324a77356..2e53c5857d18aa0c2f23d5c4f9880df0d04831f9 100644 (file)
@@ -8,5 +8,7 @@ env GO111MODULE=off
 ! go get -d vcs-test.golang.org/insecure/go/insecure
 stderr 'redirected .* to insecure URL'
 
+[short] stop 'builds a git repo'
+
 env GOINSECURE=vcs-test.golang.org/insecure/go/insecure
 go get -d vcs-test.golang.org/insecure/go/insecure