forked from TrueCloudLab/rclone
operations: fix tests TestMoveFileBackupDir and TestCopyFileBackupDir
..so they don't run on backends which can't move or copy.
This commit is contained in:
parent
7153909390
commit
734f504d5f
1 changed files with 6 additions and 0 deletions
|
@ -791,6 +791,9 @@ func TestCaseInsensitiveMoveFile(t *testing.T) {
|
||||||
func TestMoveFileBackupDir(t *testing.T) {
|
func TestMoveFileBackupDir(t *testing.T) {
|
||||||
r := fstest.NewRun(t)
|
r := fstest.NewRun(t)
|
||||||
defer r.Finalise()
|
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
|
oldBackupDir := fs.Config.BackupDir
|
||||||
fs.Config.BackupDir = r.FremoteName + "/backup"
|
fs.Config.BackupDir = r.FremoteName + "/backup"
|
||||||
|
@ -840,6 +843,9 @@ func TestCopyFile(t *testing.T) {
|
||||||
func TestCopyFileBackupDir(t *testing.T) {
|
func TestCopyFileBackupDir(t *testing.T) {
|
||||||
r := fstest.NewRun(t)
|
r := fstest.NewRun(t)
|
||||||
defer r.Finalise()
|
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
|
oldBackupDir := fs.Config.BackupDir
|
||||||
fs.Config.BackupDir = r.FremoteName + "/backup"
|
fs.Config.BackupDir = r.FremoteName + "/backup"
|
||||||
|
|
Loading…
Reference in a new issue