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 }