From 099d64b1742cb3ee91fe38ee075e9ef3ec1b88c3 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Tue, 6 Dec 2022 18:12:34 +0200 Subject: dev-python/redis-py: enable testing with redis-7 Signed-off-by: Arthur Zamarin --- dev-python/redis-py/redis-py-4.4.0.ebuild | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'dev-python') diff --git a/dev-python/redis-py/redis-py-4.4.0.ebuild b/dev-python/redis-py/redis-py-4.4.0.ebuild index 928539d1ddbb..39794f5a9cfe 100644 --- a/dev-python/redis-py/redis-py-4.4.0.ebuild +++ b/dev-python/redis-py/redis-py-4.4.0.ebuild @@ -27,7 +27,7 @@ RDEPEND=" " BDEPEND=" test? ( - =dev-db/redis-7"; then + local extra_conf=" + enable-debug-command yes + enable-module-command yes + " + fi + # Spawn Redis itself for testing purposes - # NOTE: On sam@'s machine, spawning Redis can hang in the sandbox. - # I'm not restricting tests yet because this doesn't happen for anyone else AFAICT. einfo "Spawning Redis" einfo "NOTE: Port ${redis_port} must be free" - # "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" daemonize yes pidfile ${redis_pid} port ${redis_port} - bind 127.0.0.1 + bind 127.0.0.1 ::1 + ${extra_conf} EOF # Run the tests -- cgit v1.2.3