mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 17:11:37 +02:00
bisync: skip empty test case dirs
This commit is contained in:
@ -260,6 +260,10 @@ func TestBisync(t *testing.T) {
|
|||||||
testList = nil
|
testList = nil
|
||||||
for _, testCase := range b.listDir(b.dataRoot) {
|
for _, testCase := range b.listDir(b.dataRoot) {
|
||||||
if strings.HasPrefix(testCase, "test_") {
|
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)
|
testList = append(testList, testCase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user