server integration test: add /usr/lib/ssh/sftp-server to search paths

os some distro, for example ArchLinux, the sftp-server CLI is in this
path
This commit is contained in:
Nicola Murino 2020-02-14 17:27:18 +01:00
parent 5616182052
commit 07905cb843
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func TestMain(m *testing.M) {
lookSFTPServer := []string{
"/usr/libexec/sftp-server",
"/usr/lib/openssh/sftp-server",
"/usr/lib/ssh/sftp-server",
}
sftpServer, _ := exec.LookPath("sftp-server")
if len(sftpServer) == 0 {