Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2023 09:37:09 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: 408381fc34f6 - main - sysutils/py-ansible-lint: Set TMPDIR to ${WRKSRC}
Message-ID:  <202305230937.34N9b9r3038144@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=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>



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