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

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

[nongnu] elpa/buttercup 3deb9a4 053/340: Test discovery: Ignore files in


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 3deb9a4 053/340: Test discovery: Ignore files in dot directories.
Date: Thu, 16 Dec 2021 14:59:03 -0500 (EST)

branch: elpa/buttercup
commit 3deb9a4f4ebf68f3dea264afa4867782a44030b5
Author: Jorgen Schaefer <contact@jorgenschaefer.de>
Commit: Jorgen Schaefer <contact@jorgenschaefer.de>

    Test discovery: Ignore files in dot directories.
    
    We could find tests in .cask subdirectories, that's not the point.
---
 buttercup.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/buttercup.el b/buttercup.el
index de07c57..73fe6f0 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -523,7 +523,8 @@ current directory."
   (dolist (dir (or command-line-args-left '(".")))
     (dolist (file (directory-files-recursively dir
                                                "\\'test-\\|-test.el\\'"))
-      (load file nil t)))
+      (when (not (string-match "/\\." file))
+        (load file nil t))))
   (buttercup-run))
 
 ;;;###autoload



reply via email to

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