git: 408381fc34f6 - main - sysutils/py-ansible-lint: Set TMPDIR to ${WRKSRC}

From: Matthew Seaman <matthew_at_FreeBSD.org>
Date: Tue, 23 May 2023 09:37:09 UTC
The branch main has been updated by matthew:

URL: https://cgit.FreeBSD.org/ports/commit/?id=408381fc34f6568e47f93f49de9e456f487fca95

commit 408381fc34f6568e47f93f49de9e456f487fca95
Author:     Matthew Seaman <matthew@FreeBSD.org>
AuthorDate: 2023-05-23 09:36:21 +0000
Commit:     Matthew Seaman <matthew@FreeBSD.org>
CommitDate: 2023-05-23 09:37:06 +0000

    sysutils/py-ansible-lint: 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-lint/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysutils/py-ansible-lint/Makefile b/sysutils/py-ansible-lint/Makefile
index f6569f6141b0..59fee85418cb 100644
--- a/sysutils/py-ansible-lint/Makefile
+++ b/sysutils/py-ansible-lint/Makefile
@@ -46,7 +46,7 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}coverage_enable_subprocess>=0:devel/py-cove
 USES=		python:3.9+
 USE_PYTHON=	autoplist concurrent 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
 
 .include <bsd.port.mk>