Date: Wed, 27 Mar 2019 20:26:56 +1100 From: Kubilay Kocak <koobs@FreeBSD.org> To: Wen Heping <wen@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, python <python@FreeBSD.org> Subject: Re: svn commit: r496937 - in head/devel: . py-cftime Message-ID: <ba9a0546-7cf9-a946-9199-d71d0c03efd2@FreeBSD.org> In-Reply-To: <201903270836.x2R8aVaj030148@repo.freebsd.org> References: <201903270836.x2R8aVaj030148@repo.freebsd.org>
index | next in thread | previous in thread | raw e-mail
On 27/03/2019 7:36 pm, Wen Heping wrote:
> +do-test:
> + @cd ${WRKSRC} && py.test
Use the specific Python version for this invocation, as only the default
version of py.test gets the version-less script name, so it wont work
for non-default builds of this port.
${PYTHON_CMD} -m pytest (preferred)
or
LOCALBASE/bin/py.test-${PYTHON_VER)
If the setup.py file has an integrated test command (try python setup.py
test to check), this becomes the preferred method:
${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba9a0546-7cf9-a946-9199-d71d0c03efd2>
