"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
bisync: skip TestBisyncConcurrent on non-local
nielashe5fe0b1476cf
diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.goindex e0ae08185..828c96021 100644--- a/cmd/bisync/bisync_test.go+++ b/cmd/bisync/bisync_test.go@@ -281,6 +281,9 @@ func TestBisyncRemoteRemote(t *testing.T) {// make sure rc can cope with running concurrent jobsfunc TestBisyncConcurrent(t *testing.T) {+ if !isLocal(*fstest.RemoteName) {+ t.Skip("TestBisyncConcurrent is skipped on non-local")+ }oldArgTestCase := argTestCase*argTestCase = "basic"*ignoreLogs = true // not useful to compare logs here because both runs will be logging at once@@ -596,11 +599,15 @@ func (b *bisyncTest) runTestCase(ctx context.Context, t *testing.T, testCase str}}+func isLocal(remote string) bool {+ return bilib.IsLocalPath(remote) && !strings.HasPrefix(remote, ":") && !strings.Contains(remote, ",")+}+// makeTempRemote creates temporary folder and makes a filesystem// if a local path is provided, it's ignored (the test will run under system temp)func (b *bisyncTest) makeTempRemote(ctx context.Context, remote, subdir string) (f, parent fs.Fs, path, canon string) {var err error- if bilib.IsLocalPath(remote) && !strings.HasPrefix(remote, ":") && !strings.Contains(remote, ",") {+ if isLocal(remote) {if remote != "" && !strings.HasPrefix(remote, "local") && *fstest.RemoteName != "" {b.t.Fatalf(`Missing ":" in remote %q. Use "local" to test with local filesystem.`, remote)}