branch: elpa/buttercup commit 0e94f6e3bc6d6ba498473a28618f60d2bd560c56 Author: Ola Nilsson <ola.nils...@gmail.com> Commit: Ola Nilsson <ola.nils...@gmail.com>
Lift buttercup-done handling into buttercup-reporter-batch ... from buttercup-reporter-batch-color. Use the buttercup-color variable to decide whether output should be colorized or not. --- buttercup.el | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/buttercup.el b/buttercup.el index 0a21aa9..bf1ec9f 100644 --- a/buttercup.el +++ b/buttercup.el @@ -1639,8 +1639,8 @@ EVENT and ARG are described in `buttercup-reporter'." (`buttercup-done (dolist (failed buttercup-reporter-batch--failures) - (buttercup-reporter-batch--print-failed-spec-report failed nil)) - (buttercup-reporter-batch--print-summary arg nil)) + (buttercup-reporter-batch--print-failed-spec-report failed buttercup-color)) + (buttercup-reporter-batch--print-summary arg buttercup-color)) (_ (error "Unknown event %s" event))))) @@ -1734,11 +1734,6 @@ EVENT and ARG are described in `buttercup-reporter'." (error "Unknown spec status %s" (buttercup-spec-status arg)))) (buttercup--print " (%s)\n" (buttercup-elapsed-time-string arg))) - (`buttercup-done - (dolist (failed buttercup-reporter-batch--failures) - (buttercup-reporter-batch--print-failed-spec-report failed t)) - (buttercup-reporter-batch--print-summary arg buttercup-color)) - (_ ;; Fall through to buttercup-reporter-batch implementation. (buttercup-reporter-batch event arg)))