]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/go/testdata/script: clear path in gotoolchain_issue66175
authorMichael Matloob <matloob@golang.org>
Fri, 10 May 2024 19:24:06 +0000 (15:24 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 13 May 2024 21:10:07 +0000 (21:10 +0000)
commitd4a81ec7ee3fd41daec4351fb185c5cbfeaeb94a
tree4da86b86ebb5d203f88c3ad841f6f9e19b97b920
parentdc8976dd0bfb7d50378ded23e1d7b2c569eb66a7
[release-branch.go1.22] cmd/go/testdata/script: clear path in gotoolchain_issue66175

The gotoolchain_issue66175 script test would fail if a binary named
go1.21 or go1.22 was present in the system PATH. Clear the path at the
beginning of the test to make it independent of the system path.

For #67277
Fixes #67311

Change-Id: I6d9133aee5b20ab116e07b659e8ecf3eb8add4ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/584258
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
(cherry picked from commit a0a6026bb176d25401d7d188f95c1fe769d71db8)
Reviewed-on: https://go-review.googlesource.com/c/go/+/584955
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/go/testdata/script/gotoolchain_issue66175.txt