forked from TrueCloudLab/rclone
fstests: add option to skip chunked upload
This commit is contained in:
parent
4af0c1d902
commit
3165093feb
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,8 @@ type ChunkedUploadConfig struct {
|
||||||
CeilChunkSize func(fs.SizeSuffix) fs.SizeSuffix
|
CeilChunkSize func(fs.SizeSuffix) fs.SizeSuffix
|
||||||
// More than one chunk is required on upload
|
// More than one chunk is required on upload
|
||||||
NeedMultipleChunks bool
|
NeedMultipleChunks bool
|
||||||
|
// Skip this particular remote
|
||||||
|
Skip bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetUploadChunkSizer is a test only interface to change the upload chunk size at runtime
|
// 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")
|
t.Skip("not running with -short")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if opt.ChunkedUpload.Skip {
|
||||||
|
t.Skip("skipping as ChunkedUpload.Skip is set")
|
||||||
|
}
|
||||||
|
|
||||||
setUploadChunkSizer, _ := f.(SetUploadChunkSizer)
|
setUploadChunkSizer, _ := f.(SetUploadChunkSizer)
|
||||||
if setUploadChunkSizer == nil {
|
if setUploadChunkSizer == nil {
|
||||||
t.Skipf("%T does not implement SetUploadChunkSizer", f)
|
t.Skipf("%T does not implement SetUploadChunkSizer", f)
|
||||||
|
|
Loading…
Reference in a new issue