Fix ERT not running properly on make test

This commit is contained in:
Henrik Lissner 2017-12-10 15:37:18 -05:00
parent 3bc0b18184
commit fe3db542ed
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ test-core $(patsubst %, test-%, $(MODULES)): init.el .local/autoloads.el
# run tests interactively
testi: init.el .local/autoloads.el
@$(EMACSI) -f doom//run-tests -f ert
@$(EMACSI) -f doom//run-tests
## Utility tasks

View file

@ -60,9 +60,9 @@ If neither is available, run all tests in all enabled modules."
into items
finally do (quiet! (mapc #'load-file items)))
;; run all loaded tests
(when noninteractive
(let (noninteractive)
(ert-run-tests-batch-and-exit))))
(if noninteractive
(ert-run-tests-batch-and-exit)
(call-interactively #'ert-run-tests-interactively)))
('error
(lwarn 'doom-test :error
"%s -> %s"