branch: externals/diff-hl
commit 6a9eca24c1d0d0a8042002e6372e928216057947
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    Make sure to exit 2 when tests fail
---
 Makefile             | 2 +-
 test/diff-hl-test.el | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 4b7da8243a..c35b4bd5f7 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ RM ?= rm -f
 all: compile test
 
 test:
-       $(EMACS) -batch -L . -l test/diff-hl-test.el -f diff-hl-run-tests
+       $(EMACS) -batch -L . -l test/diff-hl-test.el -f 
ert-run-tests-batch-and-exit
 
 compile:
        $(EMACS) -batch -L . -f batch-byte-compile $(SOURCES)
diff --git a/test/diff-hl-test.el b/test/diff-hl-test.el
index 412532f01a..5aada2727a 100644
--- a/test/diff-hl-test.el
+++ b/test/diff-hl-test.el
@@ -215,9 +215,6 @@
 
 "))))))
 
-(defun diff-hl-run-tests ()
-  (ert-run-tests-batch))
-
 (provide 'diff-hl-test)
 
 ;;; diff-hl-test.el ends here

Reply via email to