From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4IEkEG6QhGGKdAAAgWs5BA (envelope-from ) for ; Fri, 05 Nov 2021 03:01:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8EqlC26QhGFpdwAAbx9fmQ (envelope-from ) for ; Fri, 05 Nov 2021 02:01:18 +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 BBE002A306 for ; Fri, 5 Nov 2021 03:01:17 +0100 (CET) Received: from localhost ([::1]:59364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mioXc-0001ti-Tx for larch@yhetil.org; Thu, 04 Nov 2021 22:01:16 -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 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=1636077677; 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=U9hIOLENJ67TfMiDOGtR7H3nMWHO8yU9tgMABXJXdj8=; b=fzRtI3OjEG74dVSnYVQmgXqnWkrEGGJitM4gm5eP+yZ6PsBqpItBVU3ppYe69Jye5O7eh7 yblLH1wHia9B0ZBlZW+2Wt/GeqDpDcqS0L3FJ7VojtWc3WP8m0kV0IeKQUlf48CmZx58AX MlHfAQ2MMJ7/i+xYB31UHgdtokJ0FnvrxqPeEzYPDwvE1JtsebnFvRUwy0LvFU4XIJj0L7 Rn81Y0aUPtPKC+sEi4p1HthujbsjhyxBlCIGsfiwrLBEmMsCiwI3N/gp1TKy7R5minZGA5 xmoc3lp7oYamfOToOMT/oDXguaUWjDJSKP8bMr4k68hVuvDRo51C+e3iy6q01w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636077677; a=rsa-sha256; cv=none; b=QW+pA+p31pCWVwYUjgucvVBCyKYXa4c0olxFDLvOZmnDcodIQtYqKLwxf/9gDpCZr8uuVP SES8P6ZrdqC8B2nHjmdlmJjdOd5MC9mPzq1kP/C6F/QmKwfpnU6nir6Ear5u4ArdwJyJgp TvfxDgs0a+21A2sZJOXMxqmRAPsexD+2D4mi6wSi2RyiimDwTtwdxNoiSPASfkY4A5tQRE mp1Ei3zi0lwtcLPfBKfuzaU4c/kxO0sEaRHin+6ZV/D6ZSIVDs4QqcovQgp8pcbQmgR3PR aDUsvXnQlvKqnpJmqoLp8d1DE87VOaJKNFimu+VO3isKhQn2DVIclpYyaTzx6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=DsiH3U88; 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=DsiH3U88; 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: BBE002A306 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: x066wYmUpI16 * 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) -- 2.30.2