diff options
| author | Stefan Monnier | 2023-08-13 15:21:34 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2023-08-13 15:21:52 -0400 |
| commit | bb9133f09dafb069cafe2bea72452bd34b3d6dd2 (patch) | |
| tree | 457c827ef5b17022b820da3afa4cd10e16d3527d | |
| parent | 14cd2a058e56d63bab08190826559521083a7d05 (diff) | |
| download | emacs-bb9133f09dafb069cafe2bea72452bd34b3d6dd2.tar.gz emacs-bb9133f09dafb069cafe2bea72452bd34b3d6dd2.zip | |
* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction
| -rw-r--r-- | lisp/emacs-lisp/ert.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index be9f013ebcf..cd4b9c5a2b3 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el | |||
| @@ -1540,7 +1540,9 @@ the tests)." | |||
| 1540 | (or noninteractive | 1540 | (or noninteractive |
| 1541 | (user-error "This function is only for use in batch mode")) | 1541 | (user-error "This function is only for use in batch mode")) |
| 1542 | (let ((eln-dir (and (featurep 'native-compile) | 1542 | (let ((eln-dir (and (featurep 'native-compile) |
| 1543 | (make-temp-file "test-nativecomp-cache-" t)))) | 1543 | (make-temp-file "test-nativecomp-cache-" t))) |
| 1544 | ;; Don't ever wait for user input. | ||
| 1545 | (inhibit-interaction t)) | ||
| 1544 | (when eln-dir | 1546 | (when eln-dir |
| 1545 | (startup-redirect-eln-cache eln-dir)) | 1547 | (startup-redirect-eln-cache eln-dir)) |
| 1546 | ;; Better crash loudly than attempting to recover from undefined | 1548 | ;; Better crash loudly than attempting to recover from undefined |