diff options
author | Noam Postavsky <npostavs@gmail.com> | 2017-07-01 22:37:12 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2017-07-01 23:42:30 -0400 |
commit | 9a2a7bb6e6e08c2107a94c9a2e90e316a6f91d48 (patch) | |
tree | db81552e4aa4508ef979a9467ed1491b26ea7469 /lisp/emacs-lisp | |
parent | 11cbedc68725a7a38d292180bbcda41d2aa3e0fc (diff) | |
download | emacs-9a2a7bb6e6e08c2107a94c9a2e90e316a6f91d48.tar.gz emacs-9a2a7bb6e6e08c2107a94c9a2e90e316a6f91d48.tar.bz2 emacs-9a2a7bb6e6e08c2107a94c9a2e90e316a6f91d48.zip |
Let test summary go through even if some logs were not generated
* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit): Check
for existence of log files before reading.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/ert.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index 7edc40188e1..eb2b2e3e11b 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1468,7 +1468,7 @@ this exits Emacs, with status as per `ert-run-tests-batch-and-exit'." (with-temp-buffer (while (setq logfile (pop command-line-args-left)) (erase-buffer) - (insert-file-contents logfile) + (when (file-readable-p logfile) (insert-file-contents logfile)) (if (not (re-search-forward "^Running \\([0-9]+\\) tests" nil t)) (push logfile notests) (setq ntests (+ ntests (string-to-number (match-string 1)))) |