mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
bisync: fix koofr integration tests
Before this change, koofr failed certain bisync tests because it can't set mod time without deleting and re-uploading. This caused the "nothing to transfer" log to not get printed where expected (as it is only printed when there are 0 transfers, but koofr requires extra transfers to set modtime.) This change fixes the issue by ignoring the absence of the "nothing to transfer" log line on backends that return `fs.ErrorCantSetModTimeWithoutDelete` for `obj.SetModTime`.
This commit is contained in:
@@ -1029,6 +1029,9 @@ func (b *bisyncTest) checkPreReqs(ctx context.Context, opt *bisync.Options) (con
|
||||
if err == fs.ErrorCantSetModTime {
|
||||
b.t.Skip("skipping test as at least one remote does not support setting modtime")
|
||||
}
|
||||
if err == fs.ErrorCantSetModTimeWithoutDelete { // transfers stats expected to differ on this backend
|
||||
logReplacements = append(logReplacements, `^.*There was nothing to transfer.*$`, dropMe)
|
||||
}
|
||||
if !f.Features().IsLocal {
|
||||
time.Sleep(time.Second) // avoid GoogleCloudStorage Error 429 rateLimitExceeded
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user