branch: elpa/macrostep
commit a3338d351e18bfbacd970d371735f840e7d5fe38
Author: joddie <[email protected]>
Commit: joddie <[email protected]>
Make test script exit non-zero on failure
---
macrostep-test.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/macrostep-test.el b/macrostep-test.el
index a3189b0..9de1fae 100644
--- a/macrostep-test.el
+++ b/macrostep-test.el
@@ -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)))))