Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2023 09:37:08 GMT
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9a575d78f871 - main - sysutils/py-ansible-compat: Set TMPDIR to ${WRKSRC}
Message-ID:  <202305230937.34N9b8e5038125@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by matthew:

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

commit 9a575d78f8712f5c11ff768a1b96ffdafe328cfb
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-05-23 09:31:38 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-05-23 09:37:05 +0000

    sysutils/py-ansible-compat: Set TMPDIR to ${WRKSRC}
    
    Ensure pytest temporary files are created under ${WRKSRC} so the
    testing files will be cleaned up by `make clean`.  Otherwise this can
    leave a tree of hundreds of files under /tmp.
---
 sysutils/py-ansible-compat/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysutils/py-ansible-compat/Makefile b/sysutils/py-ansible-compat/Makefile
index 501b25f903ca..d43ee5bfb2cd 100644
--- a/sysutils/py-ansible-compat/Makefile
+++ b/sysutils/py-ansible-compat/Makefile
@@ -28,7 +28,7 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
 USES=		python:3.9+
 USE_PYTHON=	autoplist pep517 pytest
 
-TEST_ENV=	LC_ALL=C.UTF-8 PYTHONPATH=${WRKSRC}/src
+TEST_ENV=	LC_ALL=C.UTF-8 PYTHONPATH=${WRKSRC}/src TMPDIR=${WRKDIR}/
 
 NO_ARCH=	yes
 



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