Permalink
Browse files

ignore directories that begin with _ when recursing

  • Loading branch information...
David Varvel and Onsi Fakhouri
David Varvel and Onsi Fakhouri committed Feb 7, 2014
1 parent d16fe2b commit a13e218187dddef3e6d68f1062ffdcb4ec06bdf0
Showing with 1 addition and 1 deletion.
  1. +1 −1 ginkgo/testsuite/test_suite.go
@@ -28,7 +28,7 @@ func SuitesInDir(dir string, recurse bool) []*TestSuite {
}
if recurse {
- re = regexp.MustCompile(`^\.`)
+ re = regexp.MustCompile(`^[._]`)
for _, file := range files {
if file.IsDir() && !re.Match([]byte(file.Name())) {
suites = append(suites, SuitesInDir(dir+"/"+file.Name(), recurse)...)

0 comments on commit a13e218

Please sign in to comment.