forked from TrueCloudLab/rclone
bisync: skip empty test case dirs
This commit is contained in:
parent
68f0998699
commit
ba16fcfaf5
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue