commit:     6037dd3e3150d5d125f64a73f5ffecd4d5f514c1
Author:     Petr Vaněk <arkamar <AT> atlas <DOT> cz>
AuthorDate: Thu Jun  9 12:31:18 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 12 20:36:36 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6037dd3e

dev-db/redis: limit a number of test clients to MAKEOPTS jobs

It is necessary to cal ./runtest directly from src_test function in
order to be able to pass --clients parameter.

Bug: https://bugs.gentoo.org/649868
Signed-off-by: Petr Vaněk <arkamar <AT> atlas.cz>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-db/redis/redis-5.0.14.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev-db/redis/redis-5.0.14.ebuild b/dev-db/redis/redis-5.0.14.ebuild
index 0d8391f04013..b36fb5e71c04 100644
--- a/dev-db/redis/redis-5.0.14.ebuild
+++ b/dev-db/redis/redis-5.0.14.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools flag-o-matic systemd toolchain-funcs tmpfiles
+inherit autotools edo flag-o-matic multiprocessing systemd tmpfiles 
toolchain-funcs
 
 DESCRIPTION="A persistent caching system, key-value and data structures 
database"
 HOMEPAGE="https://redis.io";
@@ -127,6 +127,10 @@ src_compile() {
        emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
 }
 
+src_test() {
+       edo ./runtest --clients "$(makeopts_jobs)"
+}
+
 src_install() {
        insinto /etc/
        doins redis.conf sentinel.conf

Reply via email to