commit:     b9e7781ef2c48705384d07cdf02461bd32f67fd4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 22 22:46:38 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 23 04:48:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9e7781e

dev-python/redis-py: style changes, EPREFIX redis binary for tests

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/redis-py/redis-py-3.5.3.ebuild | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/dev-python/redis-py/redis-py-3.5.3.ebuild 
b/dev-python/redis-py/redis-py-3.5.3.ebuild
index b23499651af..840ef98b805 100644
--- a/dev-python/redis-py/redis-py-3.5.3.ebuild
+++ b/dev-python/redis-py/redis-py-3.5.3.ebuild
@@ -13,6 +13,7 @@ MY_P="${MY_PN}-${PV}"
 DESCRIPTION="Python client for Redis key-value store"
 HOMEPAGE="https://github.com/andymccurdy/redis-py";
 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="MIT"
 SLOT="0"
@@ -27,8 +28,6 @@ DEPEND="
        )
 "
 
-S="${WORKDIR}/${MY_P}"
-
 python_prepare_all() {
        distutils-r1_python_prepare_all
 
@@ -54,10 +53,11 @@ python_compile() {
 src_test() {
        local redis_pid="${T}"/redis.pid
        local redis_port=6379
-       local redis_test_config="daemonize yes
-                               pidfile ${redis_pid}
-                               port ${redis_port}
-                               bind 127.0.0.1
+       local redis_test_config="
+               daemonize yes
+               pidfile ${redis_pid}
+               port ${redis_port}
+               bind 127.0.0.1
        "
 
        # Spawn Redis itself for testing purposes
@@ -65,7 +65,7 @@ src_test() {
        # I'm not restricting tests yet because this doesn't happen for anyone 
else AFAICT.
        elog "Spawning Redis"
        elog "NOTE: Port ${redis_port} must be free"
-       /usr/sbin/redis-server - <<< "${redis_test_config}" || die
+       "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die
 
        # Run the tests
        distutils-r1_src_test

Reply via email to