git: 3be035569652 - main - archivers/py-borgbackup: clean environment for self-tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Oct 2022 20:24:11 UTC
The branch main has been updated by mandree: URL: https://cgit.FreeBSD.org/ports/commit/?id=3be035569652b94df37bc87306c0d9ab970069bc commit 3be035569652b94df37bc87306c0d9ab970069bc Author: Matthias Andree <mandree@FreeBSD.org> AuthorDate: 2022-10-04 20:22:08 +0000 Commit: Matthias Andree <mandree@FreeBSD.org> CommitDate: 2022-10-04 20:24:08 +0000 archivers/py-borgbackup: clean environment for self-tests This avoids build failures when, for instance, BORG_NEW_PASSWORD is set to another password than the one used by the self-tests. Reported by: SimpleRezo <simplerezo@gmail.com> PR: 266821 Not bumping PORTREVISION because this only affects the execution of self-tests, which is pass (then the change is irrelevant) or fail (then there is no package or installed port and PORTREVISION would serve no purpose). --- archivers/py-borgbackup/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/archivers/py-borgbackup/Makefile b/archivers/py-borgbackup/Makefile index 8801af4b893f..593d625906a7 100644 --- a/archivers/py-borgbackup/Makefile +++ b/archivers/py-borgbackup/Makefile @@ -35,7 +35,7 @@ FUSE_DESC= Support to mount locally borg backup files FUSE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}llfuse>0:devel/py-llfuse@${PY_FLAVOR} _BORGHOME=${WRKDIR}/testhome -_BORGENV=BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} HOME=${_BORGHOME} +_BORGENV=-i BORG_PASSPHRASE=secret123 PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} HOME=${_BORGHOME} post-install: ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/share/man/man1/ ${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}${MAN1PREFIX}/share/man/man1/ @@ -64,6 +64,6 @@ post-install: ${SETENV} ${_BORGENV} ${STAGEDIR}${PREFIX}/bin/borg info ${WRKDIR}/borgrepo do-test: - cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${_BORGENV} tox-${PYTHON_VER} -e ${PY_FLAVOR} -vv + cd ${WRKSRC} && ${SETENV} ${_BORGENV} ${TEST_ENV} tox-${PYTHON_VER} -e ${PY_FLAVOR} -vv .include <bsd.port.mk>