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: skip empty test case dirs

nielashba16fcfaf56c
diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.go
index a1d21845c..2d85edf49 100644
--- a/cmd/bisync/bisync_test.go
+++ b/cmd/bisync/bisync_test.go
@@ -260,6 +260,10 @@ func TestBisync(t *testing.T) {
testList = nil
for _, testCase := range b.listDir(b.dataRoot) {
if strings.HasPrefix(testCase, "test_") {
+ // if dir is empty, skip it (can happen due to gitignored files/dirs when checking out branch)
+ if len(b.listDir(filepath.Join(b.dataRoot, testCase))) == 0 {
+ continue
+ }
testList = append(testList, testCase)
}
}