diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-13 19:47:14 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-02-13 19:47:14 +0100 |
commit | 883b93e983f6666d620cb884317c2d0eab05198d (patch) | |
tree | 436a4ecbdcd6c63305925bc8ee5814912f1ce956 /clients/ssh/git_upload_pack_test.go | |
parent | c4c55c0fa591b2e354dbb085e0e1c83bb3bce210 (diff) | |
download | go-git-883b93e983f6666d620cb884317c2d0eab05198d.tar.gz |
clients: skip ssh test when SSH_AUTH_SOCK is not present
Diffstat (limited to 'clients/ssh/git_upload_pack_test.go')
-rw-r--r-- | clients/ssh/git_upload_pack_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clients/ssh/git_upload_pack_test.go b/clients/ssh/git_upload_pack_test.go index 66ac306..673e0fc 100644 --- a/clients/ssh/git_upload_pack_test.go +++ b/clients/ssh/git_upload_pack_test.go @@ -57,6 +57,12 @@ func (c *sshAgentConn) close() error { return c.pipe.Close() } +func (s *SuiteRemote) SetUpSuite(c *C) { + if os.Getenv("SSH_AUTH_SOCK") == "" { + c.Skip("SSH_AUTH_SOCK is not set") + } +} + func (s *SuiteRemote) TestConnectWithPublicKeysCallback(c *C) { agent, err := newSSHAgentConn() c.Assert(err, IsNil) |