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

This commit is contained in:
Nick Craig-Wood 2023-05-17 08:54:36 +01:00
parent 6244d1729b
commit f489b54fa0

View File

@ -1233,6 +1233,10 @@ func TestCopyInplace(t *testing.T) {
ctx, ci := fs.AddConfig(ctx) ctx, ci := fs.AddConfig(ctx)
r := fstest.NewRun(t) r := fstest.NewRun(t)
if !r.Fremote.Features().PartialUploads {
t.Skip("Partial uploads not supported")
}
ci.Inplace = true ci.Inplace = true
file1 := r.WriteFile("file1", "file1 contents", t1) file1 := r.WriteFile("file1", "file1 contents", t1)
@ -1262,6 +1266,10 @@ func TestCopyLongFileName(t *testing.T) {
ctx, ci := fs.AddConfig(ctx) ctx, ci := fs.AddConfig(ctx)
r := fstest.NewRun(t) r := fstest.NewRun(t)
if !r.Fremote.Features().PartialUploads {
t.Skip("Partial uploads not supported")
}
ci.Inplace = false // the default ci.Inplace = false // the default
file1 := r.WriteFile("file1", "file1 contents", t1) file1 := r.WriteFile("file1", "file1 contents", t1)