Skip to content

Commit a3c04ff

Browse files
committed
elpaca-test: fix handling of :ref local
1 parent 7300503 commit a3c04ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

elpaca-test.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,16 @@ The following keys are recognized:
295295
(unless (file-exists-p default-directory) (make-directory default-directory 'parents))
296296
,@(when localp '((elpaca-test--copy-local-store)))
297297
,@(when early `((elpaca-test--write-early-init ,early-file ',early)))
298-
(elpaca--test-write-init ,init-file ,ref ',(unless init-file init))
298+
(elpaca--test-write-init ,init-file ,(unless localp ref)
299+
',(when (or localp (null init-file)) init))
299300
,@(when-let ((before (plist-get args :before)))
300301
`((let ((default-directory default-directory)) ,@before)))
301302
(when buffer (elpaca-test--format-output-buffer buffer ,test))
302303
(elpaca-test--make-process
303304
,procname buffer
304305
(elpaca-test--command ',(plist-get args :args) ,batchp ,timeout ',early)
305306
`(:computed-dir ,default-directory ,@',args))
306-
(elpaca-test--announce ,localp ,ref))))
307+
(elpaca-test--announce ,localp ,(unless (eq ref 'local) ref)))))
307308

308309
(provide 'elpaca-test)
309310
;;; elpaca-test.el ends here

0 commit comments

Comments
 (0)