branch: elpa/buttercup
commit abf2abecc527b393336f22802865666dde8eaba6
Author: Sean Whitton <spwhit...@spwhitton.name>
Commit: Sean Whitton <spwhit...@spwhitton.name>

    Exclude hidden files and dirs in test root
    
    The `bin/buttercup` shell script should not try to run tests in hidden
    subdirectories of the working directory.  In particular, it should not
    run tests found in the `.pc/` directory that quilt(1) generates.
---
 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))

Reply via email to