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>master
parent
008215c193
commit
09b4d74bd3
|
@ -78,8 +78,11 @@ priority over TEST-INCLUDE."
|
|||
(for-each (lambda (jar)
|
||||
(eval-with-clojure `(do (apply require
|
||||
'(clojure.test ,@libs*))
|
||||
(apply clojure.test/run-tests
|
||||
',libs*))
|
||||
(if (clojure.test/successful?
|
||||
(apply clojure.test/run-tests
|
||||
',libs*))
|
||||
(System/exit 0)
|
||||
(System/exit 1)))
|
||||
(cons jar test-dirs)))
|
||||
jar-names)))
|
||||
#t)
|
||||
|
|
Reference in New Issue