From c2ee0d9c848dd3eeb3756e71b4032f5064987533 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 10 Apr 2017 22:51:00 +0200 Subject: [PATCH] sftp: Skip tests if server binary is not available --- src/restic/backend/sftp/layout_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/restic/backend/sftp/layout_test.go b/src/restic/backend/sftp/layout_test.go index 4bf0d41ba..cd2b18783 100644 --- a/src/restic/backend/sftp/layout_test.go +++ b/src/restic/backend/sftp/layout_test.go @@ -9,6 +9,10 @@ import ( ) func TestLayout(t *testing.T) { + if sftpserver == "" { + t.Skip("sftp server binary not available") + } + path, cleanup := TempDir(t) defer cleanup()