emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/buttercup abf2abe 109/340: Exclude hidden files and dirs i


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup abf2abe 109/340: Exclude hidden files and dirs in test root
Date: Thu, 16 Dec 2021 14:59:14 -0500 (EST)

branch: elpa/buttercup
commit abf2abecc527b393336f22802865666dde8eaba6
Author: Sean Whitton <spwhitton@spwhitton.name>
Commit: Sean Whitton <spwhitton@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

[Prev in Thread] Current Thread [Next in Thread]