From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UChXHO6UfWGLHAAAgWs5BA (envelope-from ) for ; Sat, 30 Oct 2021 20:54:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id M5zxF+6UfWEaXQAAB5/wlQ (envelope-from ) for ; Sat, 30 Oct 2021 18:54:38 +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 196C15494 for ; Sat, 30 Oct 2021 20:54:38 +0200 (CEST) Received: from localhost ([::1]:36258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgtUz-00022C-92 for larch@yhetil.org; Sat, 30 Oct 2021 14:54:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgsHv-0005jm-2n for guix-patches@gnu.org; Sat, 30 Oct 2021 13:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgsHu-0005dI-R6 for guix-patches@gnu.org; Sat, 30 Oct 2021 13:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgsHu-0005JA-O4 for guix-patches@gnu.org; Sat, 30 Oct 2021 13:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48263] [PATCH v2 3/3] gnu: hypercorn: Honor #:tests? in 'check' phase. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 30 Oct 2021 17:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48263@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 48263-submit@debbugs.gnu.org id=B48263.163561536820296 (code B ref 48263); Sat, 30 Oct 2021 17:37:02 +0000 Received: (at 48263) by debbugs.gnu.org; 30 Oct 2021 17:36:08 +0000 Received: from localhost ([127.0.0.1]:58427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgsH1-0005HI-PN for submit@debbugs.gnu.org; Sat, 30 Oct 2021 13:36:07 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55015) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgsGz-0005GL-2V for 48263@debbugs.gnu.org; Sat, 30 Oct 2021 13:36:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 779BD240027 for <48263@debbugs.gnu.org>; Sat, 30 Oct 2021 19:35:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1635615359; bh=RzqXHKjuse497wTdM4WKIFS7OY6QXzPnXO6tPmOOCyU=; h=From:To:Cc:Subject:Date:From; b=ZOVxtHRWHuyJM0wisg4/R/h+1wUx5cJTl7YsHn7TUl+HJ+G8YwUWqO67zJl894YpK 7s59x5WUAmSOtDu9Cm7ppDhr1ziOcMeP/Xi9/Rvm9grtaIulE6y3HtMc5cFmSY4GHC fsqiwerTI+MCJdhao8/qKdxBkNbGvK+rpKqpWTn6Yc0ysje6/nTO5mzXKxZc6yIAFg 181sG8rW5jtJ1w1lfH7L1JlPioZorCArTTJIE6B8aeFqYmzOoaa0fDOsqLQ7Xo/Ptd Sj3a611V+GR33UwehBqv+vJcLByV18ATa0JZZDD7qtolvx/Q+vvKRlOLoQ8wzpzquS YWPy6YOz8WPkw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HhRKV4bMQz6tmG; Sat, 30 Oct 2021 19:35:58 +0200 (CEST) From: Vinicius Monego Date: Sat, 30 Oct 2021 17:30:48 +0000 Message-Id: <20211030173048.53815-3-monego@posteo.net> In-Reply-To: <20211030173048.53815-1-monego@posteo.net> References: <20211030173048.53815-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=1635620078; 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=2wAv7wsWKkWA2rZuWFzJjak6fYlh+vHOLViUww/I0gw=; b=FaOXo1rJxgSpBCxpsaMOElmTUaUPUvA6vFQlhKStw9RQTpCkoSsXxj2S1qGjRBjsU7Y+iv mnWlZ+3SDE995dyCikoe0kKpdTFqd5ARDeAHMso47q7PQYwWXcq957SguywGD62bFvSvKO BzOpBn+dhbMrxIifcdzUSBhVr38fB8B031o6SBkFiNUwCPXfKi/u2NdQ6TLEO9b0QekGok r8bD06TmJBZd863M7FaEVZtVhnOwz5jV4XF6XAoNCgmkr2gJKiLXiEkIqQD1Mzqkr+gZ22 ojlFAmIS/Xohw1LHchDelaFGQonih85F3N03x0qsUVpmNa1orJdXW8khst3C+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635620078; a=rsa-sha256; cv=none; b=oTclPTQHirDYz6W71av9oaEBKN7nyQr/oa4b7GnKYNn2plIfYTgf8f3V1g6Dkm0saT8Kav pU/lqIXxGjMqo/GSSaobyTrYFiqkZo8fdE7fPxxhlCgbSwlTgWjT0D8vgHwowSiX4IiuYx F+mXRJZsRuuSqzINy6cwyvp1xs4Klq7Cu/9KkP64ejzWvZjmzhmSBcEdl7kj66B1ZiDTE5 O4ntRLGXu3SD6PRfdXI4Db+EIN8gEw+ko+lcQtx5dcXuPuTdYoUaPLs1ScD5/s7a4XJFLN 06zCJ2XQ3o4V/5oJ0nnJFiYhim2OTpq3nZl6rFb9shehkKKMcxhCW2cgoUwpMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ZOVxtHRW; 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=ZOVxtHRW; 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: 196C15494 X-Spam-Score: 3.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: XU9HutDWXbIQ * gnu/packages/python-web.scm (hypercorn)[arguments]: Honor #:tests? in 'check' phase. --- gnu/packages/python-web.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 287574301d..204059a08a 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -1630,9 +1630,10 @@ RFC6455, regardless of your programming paradigm.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) - (add-installed-pythonpath inputs outputs) - (invoke "pytest" "-vv")))))) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) ;; Propagate because Hypercorn also exposes functionality over a module. (propagated-inputs `(("python-h11" ,python-h11) -- 2.30.2