branch: elpa/buttercup
commit cef998879676fa118af486fb3e9b79c5958dcc77
Merge: b120003 abf2abe
Author: Jorgen Schäfer <[email protected]>
Commit: Jorgen Schäfer <[email protected]>
Merge pull request #61 from spwhitton/fix-regexp
Exclude hidden files and dirs in test root
---
buttercup.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buttercup.el b/buttercup.el
index 6d5a130..09a39c7 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -683,7 +683,7 @@ current directory."
(dolist (dir (or dirs '(".")))
(dolist (file (directory-files-recursively
dir "\\`test-.*\\.el\\'\\|-tests?\\.el\\'"))
- (when (not (string-match "/\\." (file-relative-name file)))
+ (when (not (string-match "\\(^\\|/\\)\\." (file-relative-name file)))
(load file nil t))))
(when patterns
(let ((suites-or-specs buttercup-suites))