From f489b54fa0d623242b818cb40242ef0b11b9aff1 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 17 May 2023 08:54:36 +0100 Subject: [PATCH] operations: ignore partial tests on backends which don't support them --- fs/operations/operations_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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)