From patchwork Tue Apr 12 01:22:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Patience" X-Patchwork-Id: 38532 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id DECF727BBEA; Tue, 12 Apr 2022 02:23:58 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A8AB027BBE9 for ; Tue, 12 Apr 2022 02:23:58 +0100 (BST) Received: from localhost ([::1]:45632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne5G9-0006Tq-R0 for patchwork@mira.cbaines.net; Mon, 11 Apr 2022 21:23:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5FI-0005Pn-TW for guix-patches@gnu.org; Mon, 11 Apr 2022 21:23:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne5FI-0001f6-Kw for guix-patches@gnu.org; Mon, 11 Apr 2022 21:23:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ne5FI-0003Wg-HT for guix-patches@gnu.org; Mon, 11 Apr 2022 21:23:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54872] [PATCH 3/5] gnu: python-vedo: Honor #:tests? flag. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Apr 2022 01:23:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54872 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54872@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164972654613419 (code B ref -1); Tue, 12 Apr 2022 01:23:04 +0000 Received: (at submit) by debbugs.gnu.org; 12 Apr 2022 01:22:26 +0000 Received: from localhost ([127.0.0.1]:46566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne5Eg-0003UN-KT for submit@debbugs.gnu.org; Mon, 11 Apr 2022 21:22:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:58720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne5Ef-0003UF-A9 for submit@debbugs.gnu.org; Mon, 11 Apr 2022 21:22:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5Ef-0004IF-56 for guix-patches@gnu.org; Mon, 11 Apr 2022 21:22:25 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:49704) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5Ed-0001Y9-1g for guix-patches@gnu.org; Mon, 11 Apr 2022 21:22:24 -0400 Date: Tue, 12 Apr 2022 01:22:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1649726539; bh=XWjHmZj5bTZH2nrj+6uDKfsmQ/Fg2RMHA5hzjP1hHw4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=cGxTeTRp/NCpkxBfUIvAGnG9cv7NiymGjWmHRt5+5T7yk5aX1GRql/4MzYOwToNgF rGKjod9CPT06P95v/WGma+PSx3aqq/TruaOjJGxCEd1CrQ/T/odaViWd++d1r9El4n TzcX2RgHI3jm5fkH2Jg1JVAta1lMNvwZk40wqzP9VpzQd+tX2DTW/7r1Yk6u3MhvLS UNkvUONawx1o4gdhJ3E9IZgLb3JF8zJ+C1dvl31oXRHy/jZ4mfqaj+5MSXcqP0z0SQ XfD4uBF/0f5Pgg81eKxdwZqBJzafBP+9YeluOZzku+gQjH3o3C+h8s9F5bZPMe1IN/ DOP+XVr/6L18g== From: "Paul A. Patience" Message-ID: <20220412012143.30573-4-paul@apatience.com> In-Reply-To: <20220412012143.30573-1-paul@apatience.com> References: <20220412012143.30573-1-paul@apatience.com> MIME-Version: 1.0 Received-SPF: pass client-ip=51.77.79.158; envelope-from=paul@apatience.com; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-To: "Paul A. Patience" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-science.scm (python-vedo)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. Also remove its trailing boolean. --- gnu/packages/python-science.scm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.35.1 diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 07d713e013..4538904b68 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -876,15 +876,15 @@ (define-public python-vedo (add-after 'build 'mpi-setup ,%openmpi-setup) (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (setenv "HOME" (getcwd)) - (add-installed-pythonpath inputs outputs) - (with-directory-excursion "tests" - (for-each (lambda (dir) - (with-directory-excursion dir - (invoke "./run_all.sh"))) - '("common" "dolfin"))) - #t))))) + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (setenv "HOME" (getcwd)) + (add-installed-pythonpath inputs outputs) + (with-directory-excursion "tests" + (for-each (lambda (dir) + (with-directory-excursion dir + (invoke "./run_all.sh"))) + '("common" "dolfin"))))))))) (inputs ; for the check phase `(("dolfin" ,fenics) ("pkgconfig" ,python-pkgconfig)