"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
test_all: add ignoretests parameter for skipping certain tests
Nick Craig-Wood84cebb6872cd
diff --git a/fstest/test_all/config.go b/fstest/test_all/config.goindex 82eab084d..c296013d8 100644--- a/fstest/test_all/config.go+++ b/fstest/test_all/config.go@@ -6,6 +6,7 @@ import ("fmt""os""path"+ "slices""github.com/rclone/rclone/fs"yaml "gopkg.in/yaml.v2"@@ -35,6 +36,7 @@ type Backend struct {CleanUp bool // when running clean, run cleanup firstIgnore []string // test names to ignore the failure ofTests []string // paths of tests to run, blank for all+ IgnoreTests []string // paths of tests not to run, blank for noneListRetries int // -list-retries if > 0ExtraTime float64 // factor to multiply the timeout by}@@ -42,15 +44,15 @@ type Backend struct {// includeTest returns true if this backend should be included in this// testfunc (b *Backend) includeTest(t *Test) bool {+ // Is this test ignored+ if slices.Contains(b.IgnoreTests, t.Path) {+ return false+ }+ // Empty b.Tests imples do all of them except the ignoredif len(b.Tests) == 0 {return true}- for _, testPath := range b.Tests {- if testPath == t.Path {- return true- }- }- return false+ return slices.Contains(b.Tests, t.Path)}// MakeRuns creates Run objects the Backend and Test