mirror of
https://github.com/golang/go
synced 2024-11-05 20:16:13 -07:00
cmd/go: remove unused (*testgoData).FailSSH test helper
The last remaining user was removed by CL 213829. Change-Id: Ic788b22b2de0d20e5fa096d137536d3b5c6d6c36 Reviewed-on: https://go-review.googlesource.com/c/go/+/525876 Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
fbaf71f36b
commit
0eed32bd0d
@ -926,18 +926,6 @@ func removeAll(dir string) error {
|
||||
return robustio.RemoveAll(dir)
|
||||
}
|
||||
|
||||
// failSSH puts an ssh executable in the PATH that always fails.
|
||||
// This is to stub out uses of ssh by go get.
|
||||
func (tg *testgoData) failSSH() {
|
||||
tg.t.Helper()
|
||||
wd, err := os.Getwd()
|
||||
if err != nil {
|
||||
tg.t.Fatal(err)
|
||||
}
|
||||
fail := filepath.Join(wd, "testdata/failssh")
|
||||
tg.setenv("PATH", fmt.Sprintf("%v%c%v", fail, filepath.ListSeparator, os.Getenv("PATH")))
|
||||
}
|
||||
|
||||
func TestNewReleaseRebuildsStalePackagesInGOPATH(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("skipping lengthy test in short mode")
|
||||
|
2
src/cmd/go/testdata/failssh/ssh
vendored
2
src/cmd/go/testdata/failssh/ssh
vendored
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exit 1
|
Loading…
Reference in New Issue
Block a user