Fix make test:X/Y where Y is omitted

This way, make feature will run all unit tests in feature/* modules.
This commit is contained in:
Henrik Lissner 2017-06-28 15:28:43 +02:00
parent 869bc03ca6
commit f246d89fb6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -53,8 +53,11 @@ If neither is available, run all tests in all enabled modules."
(error "Expected a list of cons, got: %s" modules)))
(t
(let ((noninteractive t)
doom-modules)
(load (expand-file-name "init.test.el" user-emacs-directory) nil t)
(setq modules (doom--module-pairs)
targets (list (expand-file-name "test/" doom-core-dir)))))
targets (list (expand-file-name "test/" doom-core-dir))))))
;; resolve targets to a list of test files and load them
(cl-loop with targets =
(append targets