From: Lars Ingebrigtsen Date: Fri, 26 Jul 2019 07:08:40 +0000 (+0200) Subject: Always include the number of unexpected results here too X-Git-Tag: emacs-27.0.90~1817^2~116 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=66db7b2c36c9189baf6f6b3d3fd7d04b3903cab4;p=emacs.git Always include the number of unexpected results here too * lisp/emacs-lisp/ert.el (ert-run-tests-batch): Always include the number of unexpected results here as well. --- diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el index c90c06d0849..272fd4aec2f 100644 --- a/lisp/emacs-lisp/ert.el +++ b/lisp/emacs-lisp/ert.el @@ -1351,15 +1351,13 @@ Returns the stats object." (let ((unexpected (ert-stats-completed-unexpected stats)) (skipped (ert-stats-skipped stats)) (expected-failures (ert--stats-failed-expected stats))) - (message "\n%sRan %s tests, %s results as expected%s%s (%s, %f sec)%s\n" + (message "\n%sRan %s tests, %s results as expected, %s unexpected%s (%s, %f sec)%s\n" (if (not abortedp) "" "Aborted: ") (ert-stats-total stats) (ert-stats-completed-expected stats) - (if (zerop unexpected) - "" - (format ", %s unexpected" unexpected)) + unexpected (if (zerop skipped) "" (format ", %s skipped" skipped))