bisync: skip empty test case dirs

This commit is contained in:
nielash 2023-12-23 11:06:04 -05:00
parent 68f0998699
commit ba16fcfaf5

View file

@ -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)
}
}