]> Cypherpunks.ru repositories - gostls13.git/commit
test: use go tool from tree, not path
authorKeith Randall <khr@golang.org>
Tue, 19 Jul 2022 22:35:51 +0000 (15:35 -0700)
committerKeith Randall <khr@google.com>
Wed, 20 Jul 2022 23:29:03 +0000 (23:29 +0000)
commitdf38614bd7f233f36a3f5ac07f0ec9029043243f
tree1cc96a0fed929bfd415e08a7d4a08559d0c513a9
parentbb1749ba3bfaa6912d79904dad5e29e6ea624d29
test: use go tool from tree, not path

Some of our tests do exec.Command("go", "tool", "compile", ...) or
similar. That "go" is selected from PATH. When run.go is started
from the command line (but not from all.bash), the first "go" is whatever
happens to be first in the user's path (some random older version than
tip). We really want all these tests to use the "go" tool from the
source tree under test. Add GOROOT/bin to the front of the path to
ensure that the tools we use come from the source tree under test.

Change-Id: I609261a4add8cd5cb228316752d52b5499aec963
Reviewed-on: https://go-review.googlesource.com/c/go/+/418474
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
test/run.go