From 7bf133e991e1e09249976fce6cc5912fd5ce630c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 May 2018 01:46:18 +0200 Subject: [PATCH] Update unit test bootstrap --- core/autoload/test.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/autoload/test.el b/core/autoload/test.el index 9d04cb4df..9017e9288 100644 --- a/core/autoload/test.el +++ b/core/autoload/test.el @@ -11,9 +11,10 @@ If neither is available, run all tests in all enabled modules." (let ((doom-modules (make-hash-table :test #'equal))) ;; ensure DOOM is initialized (let (noninteractive) - ;; Core libraries aren't fully loaded in a noninteractive session, so - ;; we reload it with `noninteractive' set to nil to force them to. - (load (expand-file-name "core.el" doom-core-dir) nil t t)) + ;; Core libraries aren't fully loaded in a noninteractive session, so we + ;; reload it with `noninteractive' set to nil to force them to. + (doom-initialize t) + (run-hooks 'doom-init-hook 'pre-command-hook 'doom-after-switch-buffer-hook)) (condition-case-unless-debug ex (let ((target-paths ;; Convert targets (either from MODULES or `argv') into a list of