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

fstests: add option to skip chunked upload

Thibault Coupin3165093feb15
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)