"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
Add -verbose flag to test_all and fix tries count
Nick Craig-Wood8ea0d5212fdc
diff --git a/fs/test_all.go b/fs/test_all.goindex 43ebb64e2..bda895400 100644--- a/fs/test_all.go+++ b/fs/test_all.go@@ -31,6 +31,7 @@ var (// FlagsmaxTries = flag.Int("maxtries", 3, "Number of times to try each test")runTests = flag.String("run", "", "Comma separated list of remotes to test, eg 'TestSwift:,TestS3'")+ verbose = flag.Bool("verbose", false, "Run the tests with -v"))// test holds info about a running test@@ -49,9 +50,12 @@ func newTest(remote string, subdir bool) *test {t := &test{remote: remote,subdir: subdir,- cmdLine: []string{"./" + binary, "-test.v", "-remote", remote},+ cmdLine: []string{"./" + binary, "-remote", remote},try: 1,}+ if *verbose {+ t.cmdLine = append(t.cmdLine, "-test.v")+ }if subdir {t.cmdLine = append(t.cmdLine, "-subdir")}@@ -80,7 +84,7 @@ func (t *test) passed() bool {// run runs all the trials for this testfunc (t *test) run(result chan<- *test) {- for try := 1; try <= *maxTries; try++ {+ for t.try = 1; t.try <= *maxTries; t.try++ {t.trial()if t.passed() {break