aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2023-04-24 13:48:29 -0400
committerBryan Mills <bcmills@google.com>2023-04-27 17:54:44 +0000
commit954ff15dbe5fc722f8965c80934774a3fa2d8c71 (patch)
treeb4e61a21fafa8dba044733e1767d5189d80bf30b /src/cmd
parent42f558bd56b043905e36702af649ae46b2aeec8a (diff)
downloadgo-954ff15dbe5fc722f8965c80934774a3fa2d8c71.tar.xz
cmd/go: skip the 'git' part of get_insecure_redirect in short mode
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>
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/go/testdata/script/get_insecure_redirect.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/get_insecure_redirect.txt b/src/cmd/go/testdata/script/get_insecure_redirect.txt
index 2a37902215..2e53c5857d 100644
--- a/src/cmd/go/testdata/script/get_insecure_redirect.txt
+++ b/src/cmd/go/testdata/script/get_insecure_redirect.txt
@@ -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