From 734f504d5fc7f0f4161a464da522fb8fd3080900 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 2 Jul 2019 10:46:49 +0100 Subject: [PATCH] operations: fix tests TestMoveFileBackupDir and TestCopyFileBackupDir ..so they don't run on backends which can't move or copy. --- fs/operations/operations_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/operations/operations_test.go b/fs/operations/operations_test.go index 11422e1cf..ab58585da 100644 --- a/fs/operations/operations_test.go +++ b/fs/operations/operations_test.go @@ -791,6 +791,9 @@ func TestCaseInsensitiveMoveFile(t *testing.T) { func TestMoveFileBackupDir(t *testing.T) { r := fstest.NewRun(t) defer r.Finalise() + if !CanServerSideMove(r.Fremote) { + t.Skip("Skipping test as remote does not support server side move or copy") + } oldBackupDir := fs.Config.BackupDir fs.Config.BackupDir = r.FremoteName + "/backup" @@ -840,6 +843,9 @@ func TestCopyFile(t *testing.T) { func TestCopyFileBackupDir(t *testing.T) { r := fstest.NewRun(t) defer r.Finalise() + if !CanServerSideMove(r.Fremote) { + t.Skip("Skipping test as remote does not support server side move or copy") + } oldBackupDir := fs.Config.BackupDir fs.Config.BackupDir = r.FremoteName + "/backup"