vfs: skip rename tests on remotes which can't rename

s3-about
Nick Craig-Wood 2019-12-13 10:55:13 +00:00
parent 7242c7ce95
commit 1b89b38a4c
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"testing"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/fs/operations"
"github.com/rclone/rclone/fstest"
"github.com/rclone/rclone/fstest/mockfs"
"github.com/rclone/rclone/fstest/mockobject"
@ -246,6 +247,10 @@ func testFileRename(t *testing.T, mode CacheMode) {
defer r.Finalise()
vfs, file, item := fileCreate(t, r, mode)
if !operations.CanServerSideMove(r.Fremote) {
t.Skip("skip as can't rename files")
}
rootDir, err := vfs.Root()
require.NoError(t, err)