From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yOVnFziQhGH3dAAAgWs5BA (envelope-from ) for ; Fri, 05 Nov 2021 03:00:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GAn0EjiQhGETdQAAbx9fmQ (envelope-from ) for ; Fri, 05 Nov 2021 02:00:24 +0000 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 273A92C920 for ; Fri, 5 Nov 2021 03:00:24 +0100 (CET) Received: from localhost ([::1]:58382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioWl-00019P-D6 for larch@yhetil.org; Thu, 04 Nov 2021 22:00:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mioWR-0000l2-Rb for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60735) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mioWR-0005oN-Bt for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mioWR-0004Fg-B6 for guix-patches@gnu.org; Thu, 04 Nov 2021 22:00:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51396] [PATCH v2 3/8] gnu: python-cfn-lint: Honor #:tests? flag. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Nov 2021 02:00:03 +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.163607758416222 (code B ref 51396); Fri, 05 Nov 2021 02:00:03 +0000 Received: (at 51396) by debbugs.gnu.org; 5 Nov 2021 01:59:44 +0000 Received: from localhost ([127.0.0.1]:44034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioW7-0004DY-LZ for submit@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:43 -0400 Received: from mout02.posteo.de ([185.67.36.66]:35897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mioW6-0004D9-8a for 51396@debbugs.gnu.org; Thu, 04 Nov 2021 21:59:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7D714240101 for <51396@debbugs.gnu.org>; Fri, 5 Nov 2021 02:59:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1636077576; bh=1MZpaIk4aD0OmqMaWpTSOHo5p2sPzcU/QGEMxgWTk3Y=; h=From:To:Cc:Subject:Date:From; b=XWdadW1/Dts3bJhqeWvTleWOBB3qjhtaPFHrLKixb9X8qHBDj0zx6mYj4HPmj1RIh zN3PMf/NkUgse6CQz5Y6HguLP3mlk34PAGqeanIeADg34TSc4DcJbcGYmK4gNq82hV FaLpO9e+x0j94gyFfTlszQdKU4nExHEQhDwsmkcY7iJNaHkFHtnM9dQc9CSyIpWtSR ImwQMGvum897wX5CgY0WsJ1mhKFV9Uv6qy2StUrzFIrBlU79gNRPsleEubGt42s9M6 pswF5S90meJXyp3VW1TrVanzmt2dWvjpGovkUmjlOyQABy27XxAxSM0N/eTmgyZ6ug ccozz5Zy8lOAw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HlkGH0vqdz9rxF; Fri, 5 Nov 2021 02:59:34 +0100 (CET) From: Vinicius Monego Date: Fri, 5 Nov 2021 01:58:31 +0000 Message-Id: <20211105015836.1046845-3-monego@posteo.net> In-Reply-To: <20211105015836.1046845-1-monego@posteo.net> References: <20211105015836.1046845-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636077624; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NXTw6L59D3ERj4kimoviZFuCrQNK74lVMFRTpbuOWqg=; b=WdlfIrKR3Bq7UF/qJ8R/U2tJhmP6XXpQ9Yw7VUPL1MnEMYF+f5LiOwpx4aVWQWWIv8nRzi EQE5vGKXyOnIt/0sUwERiAyXiEQAPA5OB927+pltObGISVJ63l2LsWlVoSNqSotjzaxE07 pKhPYm/i7QX4W+cSuQ4Q2KVMfNV7DS+rZDuofwAHPuYa2tN8yha6dP5rRn64YwXLm/VhDD 7bujUeAMqNW1qQ4DutDeFfvgBEBRJL1NoTHQQGvZKWmFu+zRiSvF/UlQIuxpazyiYis4uH vg9ta387oVTqtuFE6nGLHz1NaAq+kKbla/d1s+Vw+wGE6Q0KQLpqLYLvDRwL0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636077624; a=rsa-sha256; cv=none; b=nbDWEicrQzYwxDEKDwvcMGOlyUWveVDROsvfTHmg4AjYeZtZO7vQu1wwvByjiz49Vk3coW KSETy6opW81SYVBYsmBiZWFuAybv1gXyhSYDxWDtIjxbvH+RqNZy+8cITMT/GM66li6+uW y886hXtePotMK9tIFjMirFtog4Y7PaUPpMuBy3t/XKXRPuUssQ06/PLHJ16Z9n9csOtUue CQn0v4PVaT0XZPAbmNOdxGjVnF2QvPnCZMM4NzlEi9Rrljz3V/gAmp4gk8QshwV28xIA2m qoDIKzdOX1Vay/TYW4Yszs/SB8TuddravAIrNjjOJqWZyEF3F4jWJk99V2DtHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="XWdadW1/"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="XWdadW1/"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 273A92C920 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: xLg7S3brj2+4 * gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic changes. Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-web.scm | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 4ffdb0ad7f..66411173d0 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -509,23 +509,23 @@ emit information from within their applications to the AWS X-Ray service.") "106qf19n2k6sdjkb4006aidibd24qqiw901c1613xgjpnyw4dyl6")))) (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" "-v" - "-s" "test"))))))) + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs 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") + (add-installed-pythonpath inputs outputs) + (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))) -- 2.30.2