svn commit: r480272 - head/devel/py-cookiecutter
Matthew Seaman
matthew at FreeBSD.org
Fri Sep 21 14:08:37 UTC 2018
Author: matthew
Date: Fri Sep 21 14:08:36 2018
New Revision: 480272
URL: https://svnweb.freebsd.org/changeset/ports/480272
Log:
tox considered harmful for testing under poudriere, so run pytest directly.
Turns out that just running tox din't actually do anything worthwhile.
Actually running the unit tests produces a small number of failures.
Modified:
head/devel/py-cookiecutter/Makefile
Modified: head/devel/py-cookiecutter/Makefile
==============================================================================
--- head/devel/py-cookiecutter/Makefile Fri Sep 21 14:00:37 2018 (r480271)
+++ head/devel/py-cookiecutter/Makefile Fri Sep 21 14:08:36 2018 (r480272)
@@ -31,7 +31,17 @@ USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
+
+# pytest needs a UTF-8 environment, and it will try and write outside
+# ${WRKDIR} unless told not to. Even so, these tests have failures:
+#
+# cookiecutter/utils.py 50 3 94%
+# cookiecutter/zipfile.py 61 2 97%
+
+TEST_ENV= TMPDIR=${WRKDIR} HOME=${WRKDIR} LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
+
do-test:
- @cd ${WRKSRC} && ${LOCALBASE}/bin/tox-${PYTHON_VER}
+ @cd ${WRKSRC} && \
+ env ${TEST_ENV} ${LOCALBASE}/bin/pytest-${PYTHON_VER} --cov=cookiecutter tests
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list