@@ -5893,13 +5893,14 @@ def test_skillsbench_docker_task_staging_rewrites_wget_gpg_key_download() -> Non
58935893 encoding="utf-8"
58945894 )
58955895 assert "wget -qO -" not in staged_text, staged_text
5896+ curl_retry_all_errors_arg = skillsbench_loop._dockerfile_curl_retry_all_errors_arg()
58965897 assert (
5897- "curl -fsSL --retry 8 --retry-all-errors --retry-delay 3 "
5898+ f "curl -fsSL --retry 8 {curl_retry_all_errors_arg} --retry-delay 3 "
58985899 "--connect-timeout 60 --max-time 300 "
58995900 "https://example.invalid/public.key | gpg --dearmor"
59005901 ) in staged_text, staged_text
59015902 assert (
5902- "curl -fsSL --retry 8 --retry-all-errors --retry-delay 3 "
5903+ f "curl -fsSL --retry 8 {curl_retry_all_errors_arg} --retry-delay 3 "
59035904 "--connect-timeout 60 --max-time 300 "
59045905 "https://aquasecurity.github.io/trivy-repo/deb/public.key | "
59055906 "gpg --dearmor"
@@ -5987,7 +5988,7 @@ def test_skillsbench_docker_task_staging_hardens_build_downloads() -> None:
59875988 "apache-druid-0.20.0-bin.tar.gz"
59885989 ) in staged_text, staged_text
59895990 assert (
5990- "curl -fL --retry 5 --retry-all-errors --retry-delay 2 "
5991+ f "curl -fL --retry 5 {skillsbench_loop._dockerfile_curl_retry_all_errors_arg()} --retry-delay 2 "
59915992 "--connect-timeout 60 --max-time 600 "
59925993 "https://github.com/coursier/coursier/releases/download/"
59935994 "v2.1.25-M23/cs-x86_64-pc-linux.gz"
@@ -6043,7 +6044,7 @@ def test_skillsbench_docker_task_staging_patches_dockerfile_uv_bootstrap() -> No
60436044 ), staged_text
60446045 assert "uv==${LOOPX_SKILLSBENCH_UV_VERSION}" in staged_text, staged_text
60456046 assert "INSTALLER_DOWNLOAD_URL" in staged_text, staged_text
6046- assert "--retry-all-errors" in staged_text, staged_text
6047+ assert skillsbench_loop._dockerfile_curl_retry_all_errors_arg() in staged_text, staged_text
60476048 assert (
60486049 "curl -LsSf https://astral.sh/uv/0.9.22/install.sh | sh &&"
60496050 not in staged_text
0 commit comments