From ecce8df2280c031fd627320cc74013ded02ad10f Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Wed, 24 Nov 2021 09:21:48 +0000 Subject: Adding metadata --- dev-python/redis-py/redis-py-4.0.2.ebuild | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'dev-python/redis-py') diff --git a/dev-python/redis-py/redis-py-4.0.2.ebuild b/dev-python/redis-py/redis-py-4.0.2.ebuild index e7c09c276083..267c6a01dfc4 100644 --- a/dev-python/redis-py/redis-py-4.0.2.ebuild +++ b/dev-python/redis-py/redis-py-4.0.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) inherit distutils-r1 MY_PN="redis" @@ -30,6 +30,15 @@ BDEPEND=" distutils_enable_tests pytest python_test() { + local EPYTEST_DESELECT=( + # flaky test + tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock + ) + + epytest -k "not redismod" +} + +src_test() { local redis_pid="${T}"/redis.pid local redis_port=6379 local redis_test_config=" @@ -47,16 +56,8 @@ python_test() { "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die # Run the tests - epytest -k "not redismod" + distutils-r1_src_test # Clean up afterwards - local pid=$(<"${redis_pid}") - kill "${pid}" || die - local retries=10 - while [[ -f ${redis_pid} ]]; do - sleep 1 - if [[ $(( retries-- )) -eq 0 ]]; then - die "redis did not stop" - fi - done + kill "$(<"${redis_pid}")" || die } -- cgit v1.3