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

Stop --update tests running on remotes which don't do mod time

Nick Craig-Wood229ea3f86cd9
diff --git a/fs/operations_test.go b/fs/operations_test.go
index be102925d..8906379bf 100644
--- a/fs/operations_test.go
+++ b/fs/operations_test.go
@@ -694,6 +694,9 @@ func TestSyncWithExcludeAndDeleteExcluded(t *testing.T) {
// Test with UpdateOlder set
func TestSyncWithUpdateOlder(t *testing.T) {
+ if fs.Config.ModifyWindow == fs.ModTimeNotSupported {
+ t.Skip("Can't run this test on fs which doesn't support mod time")
+ }
r := NewRun(t)
defer r.Finalise()
t2plus := t2.Add(time.Second / 2)