From patchwork Fri Nov 5 01:58:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 34252 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 682FE27BBE3; Fri, 5 Nov 2021 02:01:20 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 36B0C27BBE1 for ; Fri, 5 Nov 2021 02:01:20 +0000 (GMT) Received: from localhost ([::1]:59364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioXf-0001ti-4n for patchwork@mira.cbaines.net; Thu, 04 Nov 2021 22:01:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioXS-0001qY-IU for guix-patches@gnu.org; Thu, 04 Nov 2021 22:01:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioXO-0006Db-Cr for guix-patches@gnu.org; Thu, 04 Nov 2021 22:01:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioXO-0004J9-Bz for guix-patches@gnu.org; Thu, 04 Nov 2021 22:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 8/8] gnu: python-moto: Honor #:tests? flag. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51396 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51396@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 51396-submit@debbugs.gnu.org id=B51396.163607760516396 (code B ref 51396); Fri, 05 Nov 2021 02:01:02 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 02:00:05 +0000 Received: from localhost ([127.0.0.1]:44055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWT-0004GI-3P for submit@debbugs.gnu.org; Thu, 04 Nov 2021 22:00:05 -0400 Received: from mout02.posteo.de ([185.67.36.66]:60849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioWR-0004EX-Fm for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BE5C0240103 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077597; bh=nyz6JtQD2+GhuRAbqZh9jfAUvtIYL5Ys8IS6JNiFL2s=; h=From:To:Cc:Subject:Date:From; b=DsiH3U88BxpYWzUTOAT0pAZqlPFVHWb9MaiQ+MaGKOmtOV6W755mfNqqKSeqgAK/L 2Dfc2IJruNllIrg/p4W3SyZJ8bzrjtUmwGmAKnHFudan78dYQnuR8s0xDPGDXDdciH QYHDksrI4paU1hPv/E2nJazsXj9oZyCq9OOYVUgWz1HG0irORvVYhmgtt0DnEmxSuO IkJ2tkx27ATLDGGFwprC/mItDPMqvCES5PE4QwZcYFtQuNIC39kuXf8G/RsxN5uKNl rpAlwa8HneRYVlfFAG0HTx9lICe5kzEhJgnMB2bIrLu33a8r1RcXoS8/r2P+AfIIAo zdFOfO+CX4NdA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGh6B2nz6tm9; Fri, 5 Nov 2021 02:59:56 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:36 +0000 Message-Id: <20211105015836.1046845-8-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-moto)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-xyz.scm | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 528e3b025a..0ef836e0bc 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13116,20 +13116,21 @@ text.") (substitute* (find-files "tests" "\\.py$") (("#!/bin/bash") (string-append "#!" bash-exec)))))) (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv" "-m" "not network" "-k" - (string-append - ;; These tests require Docker. - "not test_terminate_job" - " and not test_invoke_function_from_sqs_exception" - " and not test_rotate_secret_lambda_invocations" - ;; These tests also require the network. - " and not test_put_record_batch_http_destination" - " and not test_put_record_http_destination" - " and not test_dependencies" - " and not test_cancel_running_job" - " and not test_container_overrides"))))))) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "-vv" "-m" "not network" "-k" + (string-append + ;; These tests require Docker. + "not test_terminate_job" + " and not test_invoke_function_from_sqs_exception" + " and not test_rotate_secret_lambda_invocations" + ;; These tests also require the network. + " and not test_put_record_batch_http_destination" + " and not test_put_record_http_destination" + " and not test_dependencies" + " and not test_cancel_running_job" + " and not test_container_overrides")))))))) (native-inputs `(("python-flask" ,python-flask) ("python-flask-cors" ,python-flask-cors)