From 59bfbf5cbf1e3f0b86de2cfa9abb620da24f3a9d Mon Sep 17 00:00:00 2001 From: Matt Jolly Date: Fri, 27 Mar 2026 04:00:27 +1000 Subject: [PATCH] net-misc/curl: add `--retry` to test flags Outcome of curl distro discussion. Additionally fix makeopts_jobs QA issue. Signed-off-by: Matt Jolly --- net-misc/curl/curl-9999.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net-misc/curl/curl-9999.ebuild b/net-misc/curl/curl-9999.ebuild index 4d44b13b695aa..1f7d859dc0534 100644 --- a/net-misc/curl/curl-9999.ebuild +++ b/net-misc/curl/curl-9999.ebuild @@ -388,6 +388,7 @@ multilib_src_test() { # -k: keep test files after completion # -am: automake style TAP output # -p: print logs if test fails + # --retry: retry any failing tests up to 3 times; this is a band-aid for timing-dependent flakiness. # Note: if needed, we can skip specific tests. See e.g. Fedora's packaging # or just read https://github.com/curl/curl/tree/master/tests#run. # Note: we don't run the testsuite for cross-compilation. @@ -395,7 +396,8 @@ multilib_src_test() { # this ends up breaking when nproc is huge (like -j80). # The network sandbox causes tests 241 and 1083 to fail; these are typically skipped # as most gentoo users don't have an 'ip6-localhost' - multilib_is_native_abi && emake test TFLAGS="-n -v -a -k -am -p -j$((2*$(get_makeopts_jobs))) !241 !1083" + multilib_is_native_abi && emake test TFLAGS="-n -v -a -k -am -p -j$((2*$(get_makeopts_jobs))) --retry=3 !241 !1083" + # TODO: enable python tests (make pytest). } multilib_src_install() {