diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index 9c3ea61ff..af9c6d704 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -60,6 +60,8 @@ type ChunkedUploadConfig struct { CeilChunkSize func(fs.SizeSuffix) fs.SizeSuffix // More than one chunk is required on upload NeedMultipleChunks bool + // Skip this particular remote + Skip bool } // SetUploadChunkSizer is a test only interface to change the upload chunk size at runtime @@ -1885,6 +1887,10 @@ func Run(t *testing.T, opt *Opt) { t.Skip("not running with -short") } + if opt.ChunkedUpload.Skip { + t.Skip("skipping as ChunkedUpload.Skip is set") + } + setUploadChunkSizer, _ := f.(SetUploadChunkSizer) if setUploadChunkSizer == nil { t.Skipf("%T does not implement SetUploadChunkSizer", f)