From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 92FB56DE0946 for ; Fri, 8 Nov 2019 17:36:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.06 X-Spam-Level: X-Spam-Status: No, score=-0.06 tagged_above=-999 required=5 tests=[AWL=-0.059, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4SWALsN5gi0R for ; Fri, 8 Nov 2019 17:36:39 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 4527E6DE0195 for ; Fri, 8 Nov 2019 17:36:39 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1iTFg1-0003gA-R3; Fri, 08 Nov 2019 20:36:33 -0500 Received: (nullmailer pid 8412 invoked by uid 1000); Sat, 09 Nov 2019 01:36:33 -0000 From: David Bremner To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH 4/5] tests: run python-cffi tests In-Reply-To: References: <20191104013927.17037-1-david@tethera.net> <20191104013927.17037-5-david@tethera.net> <87h83hsq4o.fsf@tethera.net> Date: Fri, 08 Nov 2019 20:36:33 -0500 Message-ID: <8736exx23i.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Nov 2019 01:36:41 -0000 Tomi Ollila writes: > > Right -- just that pytest-3 may not be available -- to iterate (tested)... > > if ${NOTMUCH_PYTHON} -m pytest -c $conf --version >/dev/null 2>&1; then > The problem with this is that it might pass if pytest is only installed for python2. > (in this particular case redirecting both stdout and stderr is needed > to silence noise in all 'ordinary' cases, being > 1) pytest module not available -- silence stderr > 2) pytest version not new enough -- silence stderr > 3) pytest exists and is new enought -- silence stdout ) agreed