From 2f8117ea9542d0184948e01559c9219e1d5b829b Mon Sep 17 00:00:00 2001
From: Konrad Mrożek <kmrozek@comscore.com>
Date: Fri, 28 Jul 2023 13:02:09 +0000
Subject: [PATCH] Fix exit code and use run-test-var from clojure 1.11

---
 compiler/clojure-test.vim |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/compiler/clojure-test.vim b/compiler/clojure-test.vim
index 02ea189..d7c4c02 100644
--- a/compiler/clojure-test.vim
+++ b/compiler/clojure-test.vim
@@ -9,9 +9,7 @@
     command -nargs=* CompilerSet setlocal <args>
 endif
 
-echomsg expand('<sfile>:p:h:h')
+var clojure_test_deps = "'{:aliases {:clojure-test-vim {:extra-paths [\".cache/classes\"] :extra-deps {mrroman/clojure-test.vim {:local/root \"" .. expand('<sfile>:p:h:h') .. "/clojure\"}}}}}'"
 
-var clojure_test_deps = "'{:aliases {:clojure-test-vim {:extra-paths [\"classes\"] :extra-deps {mrroman/clojure-test.vim {:local/root \"" .. expand('<sfile>:p:h:h') .. "/clojure\"}}}}}'"
-
-execute 'CompilerSet makeprg=clojure\ -Sdeps\ ' .. escape(clojure_test_deps, ' \|"') .. '\ -Mtest:clojure-test-vim\ -m\ test-runner'
-CompilerSet errorformat&
+execute 'CompilerSet makeprg=clojure\ -Sdeps\ ' .. escape(clojure_test_deps, ' \|"') .. '\ -Mtest:clojure-test-vim\ --report\ stderr\ -m\ test-runner\ -test-file'
+CompilerSet errorformat=%EERROR:%f:%l:%m,%CERROR-CONTINUE:%m,%WFAIL:%f:%l:%m,%CFAIL-CONTINUE:%m

--
Gitblit v1.9.3