git: 9a575d78f871 - main - sysutils/py-ansible-compat: Set TMPDIR to ${WRKSRC}

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Tue, 23 May 2023 09:37:08 UTC
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