git: bc5f45f14ba7 - main - devel/py-python-rapidjson: Add test dependency; Improve test command line

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 02 Jun 2022 18:35:29 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bc5f45f14ba7315768138baac5eb4e569ce9b35b

commit bc5f45f14ba7315768138baac5eb4e569ce9b35b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-02 18:34:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-02 18:35:27 +0000

    devel/py-python-rapidjson: Add test dependency; Improve test command line
---
 devel/py-python-rapidjson/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/devel/py-python-rapidjson/Makefile b/devel/py-python-rapidjson/Makefile
index 4f745c6d237e..728a6062aa9e 100644
--- a/devel/py-python-rapidjson/Makefile
+++ b/devel/py-python-rapidjson/Makefile
@@ -11,13 +11,16 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
 
 USES=		python:3.6+
 USE_PYTHON=	distutils autoplist
 
-do-test: install # tests fail: https://github.com/python-rapidjson/python-rapidjson/issues/163
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
+TEST_ENV=      ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+do-test: # tests fail: https://github.com/python-rapidjson/python-rapidjson/issues/163
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest
 
 .include <bsd.port.mk>