mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix make test not resetting doom-modules properly
This commit is contained in:
@ -37,7 +37,7 @@ If neither is available, run all tests in all enabled modules."
|
|||||||
|
|
||||||
(t
|
(t
|
||||||
(let (noninteractive)
|
(let (noninteractive)
|
||||||
(clrhash doom-modules)
|
(setq doom-modules (clrhash doom-modules))
|
||||||
(load (expand-file-name "init.test.el" user-emacs-directory) nil t)
|
(load (expand-file-name "init.test.el" user-emacs-directory) nil t)
|
||||||
(setq modules (doom-module-pairs)
|
(setq modules (doom-module-pairs)
|
||||||
targets (list (expand-file-name "test/" doom-core-dir))))))
|
targets (list (expand-file-name "test/" doom-core-dir))))))
|
||||||
@ -55,7 +55,7 @@ If neither is available, run all tests in all enabled modules."
|
|||||||
collect (expand-file-name "test/" path))))
|
collect (expand-file-name "test/" path))))
|
||||||
for dir in targets
|
for dir in targets
|
||||||
if (file-directory-p dir)
|
if (file-directory-p dir)
|
||||||
nconc (reverse (directory-files-recursively dir "\\.el$"))
|
nconc (reverse (doom-packages--files dir "\\.el$"))
|
||||||
into items
|
into items
|
||||||
finally do (quiet! (mapc #'load-file items)))
|
finally do (quiet! (mapc #'load-file items)))
|
||||||
;; run all loaded tests
|
;; run all loaded tests
|
||||||
|
Reference in New Issue
Block a user