aboutsummaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2013-04-17 16:22:42 +1000
committerDavid Symonds <dsymonds@golang.org>2013-04-17 16:22:42 +1000
commitc7af4ef7d9e15a6783ae5ec853ec430c9944cdcc (patch)
tree24034a9e941d6a5a9dac5dc71bdd71689dd3675d /ssh
parent62eb5d3facc84e0f28e7ae08a3c4f0e83df63633 (diff)
downloadgo-x-crypto-c7af4ef7d9e15a6783ae5ec853ec430c9944cdcc.tar.xz
go.crypto/ssh/test: improve diagnostics for test failing to get username.
R=golang-dev, dave CC=golang-dev https://golang.org/cl/8817043
Diffstat (limited to 'ssh')
-rw-r--r--ssh/test/test_unix_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh/test/test_unix_test.go b/ssh/test/test_unix_test.go
index 63d290f..f71beb6 100644
--- a/ssh/test/test_unix_test.go
+++ b/ssh/test/test_unix_test.go
@@ -18,6 +18,7 @@ import (
"errors"
"io"
"io/ioutil"
+ "log"
"net"
"os"
"os/exec"
@@ -79,6 +80,7 @@ func username() string {
} else {
// user.Current() currently requires cgo. If an error is
// returned attempt to get the username from the environment.
+ log.Printf("user.Current: %v; falling back on $USER", err)
username = os.Getenv("USER")
}
if username == "" {