* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction

This commit is contained in:
Stefan Monnier 2023-08-13 15:21:34 -04:00
parent 14cd2a058e
commit bb9133f09d

View file

@ -1540,7 +1540,9 @@ the tests)."
(or noninteractive
(user-error "This function is only for use in batch mode"))
(let ((eln-dir (and (featurep 'native-compile)
(make-temp-file "test-nativecomp-cache-" t))))
(make-temp-file "test-nativecomp-cache-" t)))
;; Don't ever wait for user input.
(inhibit-interaction t))
(when eln-dir
(startup-redirect-eln-cache eln-dir))
;; Better crash loudly than attempting to recover from undefined