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

bisync: disable --sftp-copy-is-hardlink on sftp tests

nielash4b0df0590759
diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.go
index d97721139..0bb5e47b3 100644
--- a/cmd/bisync/bisync_test.go
+++ b/cmd/bisync/bisync_test.go
@@ -953,6 +953,12 @@ func (b *bisyncTest) checkPreReqs(ctx context.Context, opt *bisync.Options) (con
b.fs2.Features().Disable("Copy") // API has longstanding bug for conflictBehavior=replace https://github.com/rclone/rclone/issues/4590
b.fs2.Features().Disable("Move")
}
+ if strings.HasPrefix(b.fs1.String(), "sftp") {
+ b.fs1.Features().Disable("Copy") // disable --sftp-copy-is-hardlink as hardlinks are not truly copies
+ }
+ if strings.HasPrefix(b.fs2.String(), "sftp") {
+ b.fs2.Features().Disable("Copy") // disable --sftp-copy-is-hardlink as hardlinks are not truly copies
+ }
if strings.Contains(strings.ToLower(fs.ConfigString(b.fs1)), "mailru") || strings.Contains(strings.ToLower(fs.ConfigString(b.fs2)), "mailru") {
fs.GetConfig(ctx).TPSLimit = 10 // https://github.com/rclone/rclone/issues/7768#issuecomment-2060888980
}
diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml
index 8634afaa1..65955e948 100644
--- a/fstest/test_all/config.yaml
+++ b/fstest/test_all/config.yaml
@@ -322,7 +322,6 @@ backends:
remote: "TestSFTPOpenssh:"
fastlist: false
ignoretests:
- - cmd/bisync
- cmd/gitannex
- backend: "sftp"
remote: "TestSFTPRclone:"