]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clear HGRCPATH in script test
authorRuss Cox <rsc@golang.org>
Wed, 24 May 2023 13:19:15 +0000 (09:19 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 25 May 2023 00:56:18 +0000 (00:56 +0000)
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>

src/cmd/go/script_test.go

index e21e57002b311d95aaca7f0090d0fd396ba303c1..eac365bd7d1146f06dcc331d11c68a858f916c47 100644 (file)
@@ -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" {