Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 14:08:36 +0000 (UTC)
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480272 - head/devel/py-cookiecutter
Message-ID:  <201809211408.w8LE8aWP076947@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809211408.w8LE8aWP076947>