aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/script_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2023-05-24 09:19:15 -0400
committerGopher Robot <gobot@golang.org>2023-05-25 00:56:18 +0000
commitd5a05a0510eba98565b04e383e825bb53a5bc637 (patch)
tree8e08b6983ac31fac119a11eb4f7c340238e909cf /src/cmd/go/script_test.go
parent558301a5cb8c87dab8a82db096b4ed5c12610a7d (diff)
downloadgo-d5a05a0510eba98565b04e383e825bb53a5bc637.tar.gz
go-d5a05a0510eba98565b04e383e825bb53a5bc637.zip
cmd/go: clear HGRCPATH in script test
Invoking 'hg' in a nonexistant HOME can break extensions the user may have installed; clear HGRCPATH in the script test to keep tests working in that environment. Change-Id: I4d21d024c6229ead38e5f24186883863511fd483 Reviewed-on: https://go-review.googlesource.com/c/go/+/497878 Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/go/script_test.go')
-rw-r--r--src/cmd/go/script_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go
index e21e57002b..eac365bd7d 100644
--- a/src/cmd/go/script_test.go
+++ b/src/cmd/go/script_test.go
@@ -241,6 +241,7 @@ func scriptEnv(srv *vcstest.Server, srvCertFile string) ([]string, error) {
"devnull=" + os.DevNull,
"goversion=" + version,
"CMDGO_TEST_RUN_MAIN=true",
+ "HGRCPATH=",
}
if testenv.Builder() != "" || os.Getenv("GIT_TRACE_CURL") == "1" {