me
/
guix
Archived
1
0
Fork 0

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
Reily Siegel 2022-01-15 20:03:25 -05:00 committed by Ludovic Courtès
parent 008215c193
commit 09b4d74bd3
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 5 additions and 2 deletions

View File

@ -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)