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

operations: ignore partial tests on backends which don't support them

Nick Craig-Woodf489b54fa0d6
diff --git a/fs/operations/operations_test.go b/fs/operations/operations_test.go
index a77646610..19f616ed8 100644
--- a/fs/operations/operations_test.go
+++ b/fs/operations/operations_test.go
@@ -1233,6 +1233,10 @@ func TestCopyInplace(t *testing.T) {
ctx, ci := fs.AddConfig(ctx)
r := fstest.NewRun(t)
+ if !r.Fremote.Features().PartialUploads {
+ t.Skip("Partial uploads not supported")
+ }
+
ci.Inplace = true
file1 := r.WriteFile("file1", "file1 contents", t1)
@@ -1262,6 +1266,10 @@ func TestCopyLongFileName(t *testing.T) {
ctx, ci := fs.AddConfig(ctx)
r := fstest.NewRun(t)
+ if !r.Fremote.Features().PartialUploads {
+ t.Skip("Partial uploads not supported")
+ }
+
ci.Inplace = false // the default
file1 := r.WriteFile("file1", "file1 contents", t1)