From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id Qok6JU5v42Gt/AAAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 02:05:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6ND9IE5v42GLDQAAauVa8A (envelope-from ) for ; Sun, 16 Jan 2022 02:05:18 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5D1C13FA8F for ; Sun, 16 Jan 2022 02:05:18 +0100 (CET) Received: from localhost ([::1]:40566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8tyv-0005Mz-KC for larch@yhetil.org; Sat, 15 Jan 2022 20:05:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8tyh-0005L9-E4 for guix-patches@gnu.org; Sat, 15 Jan 2022 20:05:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49340) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8tyg-0007UW-MV for guix-patches@gnu.org; Sat, 15 Jan 2022 20:05:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8tyg-0002Aa-JJ for guix-patches@gnu.org; Sat, 15 Jan 2022 20:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53291] [PATCH] build: clojure-build-system: Exit with non-zero if tests fail. Resent-From: Reily Siegel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Jan 2022 01:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53291 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53291@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16422950608281 (code B ref -1); Sun, 16 Jan 2022 01:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jan 2022 01:04:20 +0000 Received: from localhost ([127.0.0.1]:42243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8ty0-00029V-Ec for submit@debbugs.gnu.org; Sat, 15 Jan 2022 20:04:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:42170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8txw-00029J-0q for submit@debbugs.gnu.org; Sat, 15 Jan 2022 20:04:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8txv-0005HW-Rk for guix-patches@gnu.org; Sat, 15 Jan 2022 20:04:15 -0500 Received: from mout-p-103.mailbox.org ([80.241.56.161]:21526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1n8txt-0005hv-Uj for guix-patches@gnu.org; Sat, 15 Jan 2022 20:04:15 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4Jbxd33FLnzQk9k for ; Sun, 16 Jan 2022 02:04:07 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reilysiegel.com; s=MBO0001; t=1642295045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=PwrS56NT5uq6zXx8V0Zd1B5nOWERDUPkdeF3cwyWwpE=; b=nV3IwstpL8Bbm3sh8BmD7tWXvHMj3eYDlGQ96WEwK8gocPZfI5s/B5MuQRexzQwQFsA8Os svrN1F467mdwylAubRSZQMoN2OiBqC/c8c4762mIV2mx4c5Ym2hzfftBrTjgpk0j31kexE iduvejeUp8PKbZwH7DeZAHWkJdxmdyRTUOS5YYZGTJhdPwxuEOwcl5NManwd7ISZmJAjuj ceWegW5cy+7bnNBv+/2wMMDh89ubdLT0yX2TjoubmiI+oHwoY0VwPWGKYhzCHDEFKelOTU d6alYNXv8hFTNKdY8w/KPmr8579yQmdfvJ2/Up0R9y0Qwuhl5aOp0IoaPduAAw== From: Reily Siegel Date: Sat, 15 Jan 2022 20:03:25 -0500 Message-ID: <87sftoijaa.fsf@reilysiegel.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=80.241.56.161; envelope-from=mail@reilysiegel.com; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642295118; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=PwrS56NT5uq6zXx8V0Zd1B5nOWERDUPkdeF3cwyWwpE=; b=UxZx5ugFN+9X6qkvYja08c0tKxzAJaDS6JXXwBd7UW2aiq1kp4KX2+rIdmxAjhSl5Eb4p5 +hDdrHw2whDsxaMeGons1A5Ej6OW81xl44Zpmi4YumfcH1hS1uvk4tkxEd+VkAQ7baVyui rN900SUTU34YJ4mAHoB6WlZ2CQSpVEzckZveVoBcWUR771SsSKptljBgnXGq2zsKbzt9hZ GVCg5fYfnvJER3iQNEnOwFcE2gtsg6h8Ic6NkfsFVkR5sdsDDmo9luNUptGJmhj2WsrlNo O0DJnYK8AB/sjfDOmsRXSA2PhOc/inKFnp2ZmeGLnySnlrLitN43v5Ywa34hAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642295118; a=rsa-sha256; cv=none; b=eM/eiLMyYMN2pJupkXr9YXh/coRfN20BAl4cDSMFODVTSoKrEtiEwhtfEX3C53cUzacIKy 45sbEpjUPbgC71r7l3BlzFLNiKa5kzj3D8CJNsblEwGN+IdZVVttV6DlJ8wD9oOHqk9YCH BcTIqn5V7mBkshkmPGJFiZvxCi1VlYmA92KGkHbA0y9eGywKIurx6OnfO9I06j8EEHJrEI P11E4/KtYFX1geJJVVDOe6rVjf1cBBO/Q7f49XnaUL7Bv7sf0wbhkyGxwTNU4J5MWlT4nq gR42wLncov4Wj93h0JliXK6/WGW8UAtAMrmBDAT3s3ORNxn2Tv54xP74fr17Jw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=reilysiegel.com header.s=MBO0001 header.b=nV3Iwstp; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=reilysiegel.com header.s=MBO0001 header.b=nV3Iwstp; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5D1C13FA8F X-Spam-Score: -2.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: DD+A1Fi/P1s3 * 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