]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: in TestScript/gotoolchain_path, remove the user's PATH
authorBryan C. Mills <bcmills@google.com>
Mon, 18 Sep 2023 20:49:41 +0000 (16:49 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 18 Sep 2023 21:44:30 +0000 (21:44 +0000)
commit30886b1b1ea0ff0282419e4deefdd35a51b2c9fc
tree60f72efc460bfb4d1507dc9140849a214007ea0f
parentcc904eb0e87a00430bec8d1918f649638553e5de
cmd/go: in TestScript/gotoolchain_path, remove the user's PATH

This test checks a behavior of GOTOOLCHAIN when an appropriate
toolchain is found in PATH. That requires it to exclude any suitable
toolchain binaries from the user's $PATH, which may otherwise
interfere.

Fixes #62709.

Change-Id: Ie9161e52d33a65be0b5265cb49e9f2bc8473e057
Reviewed-on: https://go-review.googlesource.com/c/go/+/529217
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/testdata/script/gotoolchain_path.txt