go.crypto/ssh/test: Run sshd with -e, so the debug output goes onto stderr.

R=dave, agl
CC=golang-dev
https://golang.org/cl/10230043
This commit is contained in:
Han-Wen Nienhuys
2013-06-18 21:50:58 +10:00
committed by Dave Cheney
parent 0d8dc3cd6a
commit b9b3892677
+5 -2
View File
@@ -56,7 +56,6 @@ HostbasedAuthentication no
var (
configTmpl template.Template
sshd string // path to sshd
rsakey *rsa.PrivateKey
)
@@ -103,7 +102,11 @@ func clientConfig() *ssh.ClientConfig {
}
func (s *server) Dial(config *ssh.ClientConfig) *ssh.ClientConn {
s.cmd = exec.Command("sshd", "-f", s.configfile, "-i")
sshd, err := exec.LookPath("sshd")
if err != nil {
s.t.Skipf("skipping test: %v", err)
}
s.cmd = exec.Command(sshd, "-f", s.configfile, "-i", "-e")
r1, w1, err := os.Pipe()
if err != nil {
s.t.Fatal(err)