vfs: skip rename tests on remotes which can't rename
This commit is contained in:
parent
7242c7ce95
commit
1b89b38a4c
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/rclone/rclone/fs"
|
"github.com/rclone/rclone/fs"
|
||||||
|
"github.com/rclone/rclone/fs/operations"
|
||||||
"github.com/rclone/rclone/fstest"
|
"github.com/rclone/rclone/fstest"
|
||||||
"github.com/rclone/rclone/fstest/mockfs"
|
"github.com/rclone/rclone/fstest/mockfs"
|
||||||
"github.com/rclone/rclone/fstest/mockobject"
|
"github.com/rclone/rclone/fstest/mockobject"
|
||||||
|
@ -246,6 +247,10 @@ func testFileRename(t *testing.T, mode CacheMode) {
|
||||||
defer r.Finalise()
|
defer r.Finalise()
|
||||||
vfs, file, item := fileCreate(t, r, mode)
|
vfs, file, item := fileCreate(t, r, mode)
|
||||||
|
|
||||||
|
if !operations.CanServerSideMove(r.Fremote) {
|
||||||
|
t.Skip("skip as can't rename files")
|
||||||
|
}
|
||||||
|
|
||||||
rootDir, err := vfs.Root()
|
rootDir, err := vfs.Root()
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue