Skip to content

Commit

Permalink
Make test script exit non-zero on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
joddie committed Dec 13, 2015
1 parent aa59895 commit a3338d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion macrostep-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -457,4 +457,6 @@ XSTRING (Lisp_Object a)
(when noninteractive
(load-file (expand-file-name "macrostep.el"
(file-name-directory load-file-name)))
(ert-run-tests-batch "^macrostep"))
(let ((stats (ert-run-tests-batch "^macrostep")))
(if noninteractive
(kill-emacs (ert-stats-completed-unexpected stats)))))

0 comments on commit a3338d3

Please sign in to comment.