aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2023-03-29 10:27:54 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2023-03-29 10:27:54 +0000
commitbf1149cbdbc2c1719490fb40b114356c31adb51e (patch)
treea14ff169ab1282ac528235ee8efe36809622af40
parentd2442cca174e7f3a7303133f9ecd76a396ce5a7e (diff)
textproc/py-bracex: Set PYTHONPATH in TEST_ENV
Ensure that tests are run against the new copy of the module in the staging directory, and not an earlier version that already happened to be installed.
-rw-r--r--textproc/py-bracex/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/textproc/py-bracex/Makefile b/textproc/py-bracex/Makefile
index 3b3eb1f6612e..9a1993d3398e 100644
--- a/textproc/py-bracex/Makefile
+++ b/textproc/py-bracex/Makefile
@@ -21,6 +21,8 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
USES= python:3.7+
USE_PYTHON= autoplist pep517 pytest
+TEST_ENV+= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
+
NO_ARCH= yes
.include <bsd.port.mk>