Skip to content

Commit

Permalink
sysutils/py-ansible-compat: Set TMPDIR to ${WRKSRC}
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
infracaninophile committed May 23, 2023
1 parent 84b834c commit 9a575d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysutils/py-ansible-compat/Makefile
Expand Up @@ -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

Expand Down

0 comments on commit 9a575d7

Please sign in to comment.