From b47ebb229fba8748366d52b6894a572da7c3ccfd Mon Sep 17 00:00:00 2001 From: qmuntal Date: Mon, 24 Feb 2025 10:21:01 +0100 Subject: all: use testenv.GoToolPath instead of hardcoding go Change-Id: I84ec73d3ddef913a87cb9b48147c44ac3e7c8a8d Reviewed-on: https://go-review.googlesource.com/c/go/+/651957 Reviewed-by: Ian Lance Taylor Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI --- src/internal/godebug/godebug_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/internal/godebug') diff --git a/src/internal/godebug/godebug_test.go b/src/internal/godebug/godebug_test.go index fbabc657fe..60c35a9619 100644 --- a/src/internal/godebug/godebug_test.go +++ b/src/internal/godebug/godebug_test.go @@ -101,8 +101,8 @@ func TestPanicNilRace(t *testing.T) { } func TestCmdBisect(t *testing.T) { - testenv.MustHaveGoBuild(t) - out, err := exec.Command("go", "run", "cmd/vendor/golang.org/x/tools/cmd/bisect", "GODEBUG=buggy=1#PATTERN", os.Args[0], "-test.run=^TestBisectTestCase$").CombinedOutput() + testenv.MustHaveGoRun(t) + out, err := exec.Command(testenv.GoToolPath(t), "run", "cmd/vendor/golang.org/x/tools/cmd/bisect", "GODEBUG=buggy=1#PATTERN", os.Args[0], "-test.run=^TestBisectTestCase$").CombinedOutput() if err != nil { t.Fatalf("exec bisect: %v\n%s", err, out) } -- cgit v1.3-5-g9baa