From owner-svn-ports-all@freebsd.org Fri Sep 21 14:08:37 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2124E109B46B; Fri, 21 Sep 2018 14:08:37 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CB49B80C09; Fri, 21 Sep 2018 14:08:36 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C176E6057; Fri, 21 Sep 2018 14:08:36 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8LE8au4076948; Fri, 21 Sep 2018 14:08:36 GMT (envelope-from matthew@FreeBSD.org) Received: (from matthew@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8LE8aWP076947; Fri, 21 Sep 2018 14:08:36 GMT (envelope-from matthew@FreeBSD.org) Message-Id: <201809211408.w8LE8aWP076947@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: matthew set sender to matthew@FreeBSD.org using -f From: Matthew Seaman Date: Fri, 21 Sep 2018 14:08:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480272 - head/devel/py-cookiecutter X-SVN-Group: ports-head X-SVN-Commit-Author: matthew X-SVN-Commit-Paths: head/devel/py-cookiecutter X-SVN-Commit-Revision: 480272 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2018 14:08:37 -0000 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