build-system/clojure: Exit with non-zero if tests fail.
* guix/build/clojure-build-system.scm (check): Exit test process with a non-zero exit code if tests fail. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
008215c193
commit
09b4d74bd3
1 changed files with 5 additions and 2 deletions
|
@ -78,8 +78,11 @@ priority over TEST-INCLUDE."
|
||||||
(for-each (lambda (jar)
|
(for-each (lambda (jar)
|
||||||
(eval-with-clojure `(do (apply require
|
(eval-with-clojure `(do (apply require
|
||||||
'(clojure.test ,@libs*))
|
'(clojure.test ,@libs*))
|
||||||
(apply clojure.test/run-tests
|
(if (clojure.test/successful?
|
||||||
',libs*))
|
(apply clojure.test/run-tests
|
||||||
|
',libs*))
|
||||||
|
(System/exit 0)
|
||||||
|
(System/exit 1)))
|
||||||
(cons jar test-dirs)))
|
(cons jar test-dirs)))
|
||||||
jar-names)))
|
jar-names)))
|
||||||
#t)
|
#t)
|
||||||
|
|
Reference in a new issue