From 954ff15dbe5fc722f8965c80934774a3fa2d8c71 Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Mon, 24 Apr 2023 13:48:29 -0400 Subject: [PATCH] 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 Reviewed-by: Than McIntosh Run-TryBot: Bryan Mills TryBot-Result: Gopher Robot --- src/cmd/go/testdata/script/get_insecure_redirect.txt | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.48.1