From 66db7b2c36c9189baf6f6b3d3fd7d04b3903cab4 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 26 Jul 2019 09:08:40 +0200 Subject: [PATCH] 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. --- lisp/emacs-lisp/ert.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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)) -- 2.39.2