From 6cec6ebc5ec69ea80b2855214da952473d462fcb Mon Sep 17 00:00:00 2001 From: Volodymyr Katkalov Date: Mon, 21 Oct 2024 17:26:18 +0300 Subject: [PATCH] Fix curl in valgrind tes --- tests/console/valgrind.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/console/valgrind.pm b/tests/console/valgrind.pm index 7a7e8e9a7775..0b483834d32d 100644 --- a/tests/console/valgrind.pm +++ b/tests/console/valgrind.pm @@ -146,7 +146,7 @@ sub prepare { # Compile the valgrind test program assert_script_run 'mkdir -p /var/tmp/valgrind'; assert_script_run 'cd /var/tmp/valgrind'; - assert_script_run 'curl -v -o valgrind-test.c ' . data_url('valgrind/valgrind-test.c'); + script_retry('curl -v -o valgrind-test.c ' . data_url('valgrind/valgrind-test.c'), retry => 10, delay => 30, die => 1); # Ignore unititialized errors, as they are expected for this test case assert_script_run 'gcc -Wall -Werror -Wextra -Wno-maybe-uninitialized -std=c99 -g2 -O0 -o valgrind-test valgrind-test.c'; }