From patchwork Wed Aug 11 23:44:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 32046 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 AF15627BC85; Thu, 12 Aug 2021 00:47:15 +0100 (BST) 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 3CC4427BC78 for ; Thu, 12 Aug 2021 00:47:15 +0100 (BST) Received: from localhost ([::1]:57966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDxwI-0006vE-84 for patchwork@mira.cbaines.net; Wed, 11 Aug 2021 19:47:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDxw7-0006ua-8c for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDxw7-0006bJ-2F for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDxw7-0001JO-0P for guix-patches@gnu.org; Wed, 11 Aug 2021 19:47:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50018] [PATCH 07/19] gnu: python-cfn-lint: Respect #:tests?. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Aug 2021 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50018@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 50018-submit@debbugs.gnu.org id=B50018.16287255744812 (code B ref 50018); Wed, 11 Aug 2021 23:47:02 +0000 Received: (at 50018) by debbugs.gnu.org; 11 Aug 2021 23:46:14 +0000 Received: from localhost ([127.0.0.1]:36930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvK-0001FX-6C for submit@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:14 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDxvI-0001F7-4R for 50018@debbugs.gnu.org; Wed, 11 Aug 2021 19:46:12 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 658CA240101 for <50018@debbugs.gnu.org>; Thu, 12 Aug 2021 01:46:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628725566; bh=G0MrP9J0EoFd16pn6G5p9JKq5oB/OSUr9noWeUVDZ/4=; h=From:To:Cc:Subject:Date:From; b=DwN0ngnXxr4WjTE5WlGSdmrcQG7IpnDrprKZZyY0h7O4aDG1f/jtEQikRWzGwXYLU K9GnJ8ly4lH9YbXR0Eu348QwhImnJ7Y5QDW94Bsg4dNoPFx5HXehminJxzPi0WakJZ 47ugaIb8gKCbf1hMLx+1iAAH0pW6zTf1IUTI4iVlZWN2ZkuDK4dUf8ooBXsnD6QAm5 G4bioTMts74NuvA4iwMN46tD6j0pqOAdtLw2vczZWbLvDlveda+QDB/iTBCTFvarRn QAPAa6OKdNmEbQywCzK6deoOUo+hKqwpQUM/UTYVsYdQKx3u9gHfA1CxHfQjx8VXcK KOGAAMTXhakCg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GlRKT3l8hz6tm4; Thu, 12 Aug 2021 01:46:05 +0200 (CEST) From: Vinicius Monego Date: Wed, 11 Aug 2021 23:44:59 +0000 Message-Id: <20210811234511.32450-7-monego@posteo.net> In-Reply-To: <20210811234511.32450-1-monego@posteo.net> References: <20210811234511.32450-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-web.scm (python-cfn-lint)[arguments]: Make some cosmetic changes. Respect #:tests? in the custom 'check phase. --- gnu/packages/python-web.scm | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index e1da025cfb..9572bed39c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -501,23 +501,25 @@ emit information from within their applications to the AWS X-Ray service.") "1njcrwanq0py0qpz875bg05jyrs2cvpcc570xxb8rjh139n1nxsh")))) (build-system python-build-system) (arguments - `(#:phases (modify-phases %standard-phases - (replace 'check - (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out"))) - ;; Remove test for the documentation update scripts - ;; to avoid a dependency on 'git'. - (delete-file - "test/unit/module/maintenance/test_update_documentation.py") - (delete-file - "test/unit/module/maintenance/test_update_resource_specs.py") - (setenv "PYTHONPATH" - (string-append "./build/lib:" - (getenv "PYTHONPATH"))) - (setenv "PATH" (string-append out "/bin:" - (getenv "PATH"))) - (invoke "python" "-m" "unittest" "discover" - "-s" "test"))))))) + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key outputs tests? #:allow-other-keys) + (when tests? + (let ((out (assoc-ref outputs "out"))) + ;; Remove test for the documentation update scripts + ;; to avoid a dependency on 'git'. + (delete-file + "test/unit/module/maintenance/test_update_documentation.py") + (delete-file + "test/unit/module/maintenance/test_update_resource_specs.py") + (setenv "PYTHONPATH" + (string-append "./build/lib:" + (getenv "PYTHONPATH"))) + (setenv "PATH" (string-append out "/bin:" + (getenv "PATH"))) + (invoke "python" "-m" "unittest" "discover" + "-s" "test")))))))) (native-inputs `(("python-pydot" ,python-pydot) ("python-mock" ,python-mock)))