diff options
| author | Petr Vaněk <arkamar@atlas.cz> | 2022-06-09 16:37:39 +0200 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2022-06-12 21:36:36 +0100 |
| commit | f6b9b40e3c3a58e89a1866d335334d7b210ae3fd (patch) | |
| tree | 7aee6bcb8c898af013cd0c5038660b1595c6dd8e /dev-db/redis/redis-6.2.7-r1.ebuild | |
| parent | 6037dd3e3150d5d125f64a73f5ffecd4d5f514c1 (diff) | |
| download | gentoo-f6b9b40e3c3a58e89a1866d335334d7b210ae3fd.tar.gz gentoo-f6b9b40e3c3a58e89a1866d335334d7b210ae3fd.tar.bz2 gentoo-f6b9b40e3c3a58e89a1866d335334d7b210ae3fd.zip | |
dev-db/redis: limit a number of test clients to MAKEOPTS jobs
This change makes tests to respect user MAKEOPTS jobs preference rather
than running 16 test clients by default.
Closes: https://bugs.gentoo.org/649868
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-db/redis/redis-6.2.7-r1.ebuild')
| -rw-r--r-- | dev-db/redis/redis-6.2.7-r1.ebuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dev-db/redis/redis-6.2.7-r1.ebuild b/dev-db/redis/redis-6.2.7-r1.ebuild index 2224d18e297e..72974ef2f1e5 100644 --- a/dev-db/redis/redis-6.2.7-r1.ebuild +++ b/dev-db/redis/redis-6.2.7-r1.ebuild @@ -14,7 +14,7 @@ LUA_COMPAT=( lua5-1 luajit ) # Upstream have deviated too far from vanilla Lua, adding their own APIs # like lua_enablereadonlytable, but we still need the eclass and such # for bug #841422. -inherit autotools edo flag-o-matic lua-single systemd tmpfiles toolchain-funcs +inherit autotools edo flag-o-matic lua-single multiprocessing systemd tmpfiles toolchain-funcs DESCRIPTION="A persistent caching system, key-value, and data structures database" HOMEPAGE="https://redis.io" @@ -135,6 +135,10 @@ src_compile() { } src_test() { + local runtestargs=( + --clients "$(makeopts_jobs)" # see bug #649868 + ) + # Known to fail with FEATURES=usersandbox if has usersandbox ${FEATURES}; then ewarn "You are emerging ${P} with 'usersandbox' enabled." \ @@ -143,10 +147,10 @@ src_test() { if use ssl; then edo ./utils/gen-test-certs.sh - edo ./runtest --tls - else - edo ./runtest + runtestargs+=( --tls ) fi + + edo ./runtest "${runtestargs[@]}" } src_install() { |
