]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 Aug 2023 19:21:34 +0000 (15:21 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 Aug 2023 19:21:52 +0000 (15:21 -0400)
lisp/emacs-lisp/ert.el

index be9f013ebcf3b32e06b7910429f26f75ef05292d..cd4b9c5a2b3da2a2996c93b94a26a8dcdea7723e 100644 (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