Fix make test not resetting doom-modules properly
This commit is contained in:
parent
0fb72805ab
commit
dfefbd0176
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue