summaryrefslogtreecommitdiff
path: root/dev-python/redis-py
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-11-24 09:21:48 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-11-24 09:21:48 +0000
commitecce8df2280c031fd627320cc74013ded02ad10f (patch)
treefecf43915603c271ef77d538033253725439c1c4 /dev-python/redis-py
parentbc144aeed8fd9cf9c997357015eeaac9a8d85248 (diff)
downloadbaldeagleos-repo-ecce8df2280c031fd627320cc74013ded02ad10f.tar.gz
baldeagleos-repo-ecce8df2280c031fd627320cc74013ded02ad10f.tar.xz
baldeagleos-repo-ecce8df2280c031fd627320cc74013ded02ad10f.zip
Adding metadata
Diffstat (limited to 'dev-python/redis-py')
-rw-r--r--dev-python/redis-py/redis-py-4.0.2.ebuild23
1 files changed, 12 insertions, 11 deletions
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
}