forked from TrueCloudLab/restic
sftp: Skip tests if server binary is not available
This commit is contained in:
parent
e8780f1ec6
commit
c2ee0d9c84
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLayout(t *testing.T) {
|
func TestLayout(t *testing.T) {
|
||||||
|
if sftpserver == "" {
|
||||||
|
t.Skip("sftp server binary not available")
|
||||||
|
}
|
||||||
|
|
||||||
path, cleanup := TempDir(t)
|
path, cleanup := TempDir(t)
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue