From 57dc33daea08f8ec4d24c0e442620e24515599d1 Mon Sep 17 00:00:00 2001 From: Thibaud CANALE Date: Thu, 10 Apr 2025 16:10:28 +0200 Subject: [PATCH] app-crypt/certbot: fix test for 4.0.0 Bug: https://bugs.gentoo.org/953447 Signed-off-by: Thibaud CANALE Closes: https://github.com/gentoo/gentoo/pull/41525 Signed-off-by: Sam James --- .../{certbot-4.0.0.ebuild => certbot-4.0.0-r1.ebuild} | 5 +++-- app-crypt/certbot/certbot-9999.ebuild | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) rename app-crypt/certbot/{certbot-4.0.0.ebuild => certbot-4.0.0-r1.ebuild} (97%) diff --git a/app-crypt/certbot/certbot-4.0.0.ebuild b/app-crypt/certbot/certbot-4.0.0-r1.ebuild similarity index 97% rename from app-crypt/certbot/certbot-4.0.0.ebuild rename to app-crypt/certbot/certbot-4.0.0-r1.ebuild index 4cf65c67fa573..83fd24c753d4e 100644 --- a/app-crypt/certbot/certbot-4.0.0.ebuild +++ b/app-crypt/certbot/certbot-4.0.0-r1.ebuild @@ -182,6 +182,7 @@ python_compile() { python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # Argument required to change pytest rootdir. - epytest "${BUILD_DIR}" + # Change for pytest rootdir is required. + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + epytest } diff --git a/app-crypt/certbot/certbot-9999.ebuild b/app-crypt/certbot/certbot-9999.ebuild index 4cf65c67fa573..83fd24c753d4e 100644 --- a/app-crypt/certbot/certbot-9999.ebuild +++ b/app-crypt/certbot/certbot-9999.ebuild @@ -182,6 +182,7 @@ python_compile() { python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # Argument required to change pytest rootdir. - epytest "${BUILD_DIR}" + # Change for pytest rootdir is required. + cd "${BUILD_DIR}/install$(python_get_sitedir)" || die + epytest }