From patchwork Fri Apr 22 11:53:17 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: 38748 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 372AD27BBEA; Fri, 22 Apr 2022 13:52:34 +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 022BB27BBE9 for ; Fri, 22 Apr 2022 13:52:34 +0100 (BST) Received: from localhost ([::1]:55768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhsm1-0008AF-52 for patchwork@mira.cbaines.net; Fri, 22 Apr 2022 08:52:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhrrP-00026u-P6 for guix-patches@gnu.org; Fri, 22 Apr 2022 07:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhrrP-0005Jt-EO for guix-patches@gnu.org; Fri, 22 Apr 2022 07:54:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhrrP-0007ZO-D4 for guix-patches@gnu.org; Fri, 22 Apr 2022 07:54:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54869] [PATCH v2 4/7] gnu: python-vedo: Honor #:tests? flag. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Apr 2022 11:54:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54869 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54869@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 54869-submit@debbugs.gnu.org id=B54869.165062841128982 (code B ref 54869); Fri, 22 Apr 2022 11:54:03 +0000 Received: (at 54869) by debbugs.gnu.org; 22 Apr 2022 11:53:31 +0000 Received: from localhost ([127.0.0.1]:51784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhrqs-0007XO-Pa for submit@debbugs.gnu.org; Fri, 22 Apr 2022 07:53:30 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:51827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhrqp-0007Wb-PJ for 54869@debbugs.gnu.org; Fri, 22 Apr 2022 07:53:28 -0400 Date: Fri, 22 Apr 2022 11:53:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1650628402; bh=Dwarics/nuuxaWFkfV7M5LbVN5sNoPDr2R7MwfVZUic=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=Hf4K7Nz5fK6zg1SO0AAqlwLWa+RaMese3hwcDrDkrSap4RBxrOepYUttlslLSm7Dn nXwMIXrbM/RwFNIi22r+J7LYpFm5GAAjzZ0tVov+WhVDaqQMXFeLwlQklD1WQyYM/d LBApI+fTCzA9+NljXQFpRACTgeoCKfX+3hQNWsV4LQ4KtkZWflItfIKHa585HO+yMq m05XVQyBnwVtUjSrPhYY0QgGZ2S77+s5F/SEorQ7Uyo5isCyy+/q11DUZUi2f1DoHx cNG+qEJAWpS3FALZ52SJnbSrOs4gRfXcEVPaZHdDSmVfMDwU2JhHV3dZwKcWsJZNZq Zcx75BOeZXENw== From: "Paul A. Patience" Message-ID: <20220422115258.63649-5-paul@apatience.com> In-Reply-To: <20220422115258.63649-1-paul@apatience.com> References: <20220422115258.63649-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 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)