Skip to content

Commit

Permalink
Print test output properly with "--win" and "-no-win"
Browse files Browse the repository at this point in the history
  • Loading branch information
DarwinAwardWinner committed Jan 15, 2017
1 parent 10628b8 commit 6ab5e65
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ert-runner.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ Arguments: stats, test, result")
This bypasses the normal output capturing ert-runner does, and is
primarily intended for reporters."
(princ (apply #'format format args)
t))
(let ((message (apply #'format format args)))
(if ert-runner-output-file
(f-append-text message 'utf-8 ert-runner-output-file)
(princ message t))))

;; Work around Emacs bug #16121, which is fixed in Emacs 24.4, but still present
;; in former releases. See ;; http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16121
Expand Down

0 comments on commit 6ab5e65

Please sign in to comment.