]> Cypherpunks repositories - gostls13.git/commit
cmd/go/testdata/script: restrict test to check only exe name
authorBrian Gabin <bpgabin@gmail.com>
Mon, 21 Oct 2024 04:58:08 +0000 (21:58 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 20 Nov 2024 18:45:12 +0000 (18:45 +0000)
commite1dc707f33b0cecae32e6e649fbd58a7274fc322
treeb9f4a54ae86fdbe9aa6c7d1816542a1e90788d89
parent7c7170e93934d78b1a1c5c0288f5cdbbf812eeee
cmd/go/testdata/script: restrict test to check only exe name

Avoid test failures caused by 'v2' in user environment paths.
Modify the test to check only the output executable name and ensure it is not 'v2', rather than inspecting the entire path.

Fixes #67989

Change-Id: Ida2131f6c9b41724df1b6b5e31413252c5009d25
Reviewed-on: https://go-review.googlesource.com/c/go/+/621315
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/testdata/script/mod_install_versioned.txt