test_all: add the vfs tests to the integration tests

Fix failing tests for some remotes
This commit is contained in:
Nick Craig-Wood 2019-02-27 17:14:32 +00:00
parent 14ef4437e5
commit ac7e1dbf62
6 changed files with 57 additions and 4 deletions

View file

@ -468,6 +468,12 @@ func TestDirRemoveName(t *testing.T) {
func TestDirRename(t *testing.T) {
r := fstest.NewRun(t)
defer r.Finalise()
features := r.Fremote.Features()
if features.DirMove == nil && features.Move == nil && features.Copy == nil {
return // skip as can't rename directories
}
vfs, dir, file1 := dirCreate(t, r)
file3 := r.WriteObject("dir/file3", "file3 contents!", t1)
fstest.CheckListingWithPrecision(t, r.Fremote, []fstest.Item{file1, file3}, []string{"dir"}, r.Fremote.Precision())