all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53291] [PATCH] build: clojure-build-system: Exit with non-zero if tests fail.
@ 2022-01-16  1:03 Reily Siegel
  2022-01-24  9:11 ` bug#53291: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Reily Siegel @ 2022-01-16  1:03 UTC (permalink / raw)
  To: 53291


* guix/build/clojure-build-system.scm (check): Exit test process with a
non-zero exit code if tests fail.
---
 guix/build/clojure-build-system.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/guix/build/clojure-build-system.scm b/guix/build/clojure-build-system.scm
index 91d6122afe..22e90581a5 100644
--- a/guix/build/clojure-build-system.scm
+++ b/guix/build/clojure-build-system.scm
@@ -99,8 +99,11 @@ (define* (check #:key
         (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)
-- 
2.34.0




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#53291: [PATCH] build: clojure-build-system: Exit with non-zero if tests fail.
  2022-01-16  1:03 [bug#53291] [PATCH] build: clojure-build-system: Exit with non-zero if tests fail Reily Siegel
@ 2022-01-24  9:11 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-01-24  9:11 UTC (permalink / raw)
  To: Reily Siegel; +Cc: 53291-done

Hi,

Reily Siegel <mail@reilysiegel.com> skribis:

> * guix/build/clojure-build-system.scm (check): Exit test process with a
> non-zero exit code if tests fail.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-24  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-16  1:03 [bug#53291] [PATCH] build: clojure-build-system: Exit with non-zero if tests fail Reily Siegel
2022-01-24  9:11 ` bug#53291: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.