Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: only run TestRWCacheRename on remotes which can rename

Nick Craig-Wood95c83b37fbc2
diff --git a/vfs/read_write_test.go b/vfs/read_write_test.go
index 403e61b33..ef4a6ec48 100644
--- a/vfs/read_write_test.go
+++ b/vfs/read_write_test.go
@@ -10,6 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/rclone/rclone/fs"
+ "github.com/rclone/rclone/fs/operations"
"github.com/rclone/rclone/fstest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -702,6 +703,10 @@ func TestRWCacheRename(t *testing.T) {
r := fstest.NewRun(t)
defer r.Finalise()
+ if !operations.CanServerSideMove(r.Fremote) {
+ t.Skip("skip as can't rename files")
+ }
+
opt := DefaultOpt
opt.CacheMode = CacheModeFull
vfs := New(r.Fremote, &opt)