[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 9a2a7bb: Let test summary go through even if some l
From: |
Noam Postavsky |
Subject: |
[Emacs-diffs] master 9a2a7bb: Let test summary go through even if some logs were not generated |
Date: |
Sat, 1 Jul 2017 23:42:47 -0400 (EDT) |
branch: master
commit 9a2a7bb6e6e08c2107a94c9a2e90e316a6f91d48
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
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.
---
lisp/emacs-lisp/ert.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index 7edc401..eb2b2e3 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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 9a2a7bb: Let test summary go through even if some logs were not generated,
Noam Postavsky <=