]> git.eshelyaron.com Git - emacs.git/commitdiff
Tiny ert-summarize-tests-batch-and-exit improvement
authorGlenn Morris <rgm@gnu.org>
Tue, 18 Dec 2018 06:52:34 +0000 (22:52 -0800)
committerGlenn Morris <rgm@gnu.org>
Tue, 18 Dec 2018 06:52:34 +0000 (22:52 -0800)
* lisp/emacs-lisp/ert.el (ert-summarize-tests-batch-and-exit):
Report the details of unexpected passes as well as failures.

lisp/emacs-lisp/ert.el

index 9702a11998e1f53a91a3ea0d4bb92e3183ae37c1..6d4d90e498696f7200feef8ab1dab62470d5460c 100644 (file)
@@ -1563,7 +1563,8 @@ Ran \\([0-9]+\\) tests, \\([0-9]+\\) results as expected\
       (message "-------")
       (with-temp-buffer
         (dolist (x (list (list skipped "skipped" "SKIPPED")
-                         (list unexpected "unexpected" "FAILED")))
+                         (list unexpected "unexpected"
+                               "\\(?:FAILED\\|PASSED\\)")))
           (mapc (lambda (l)
                   (erase-buffer)
                   (insert-file-contents l)