From 4446cf0a65e4ba8119474deed422b1cd3c873816 Mon Sep 17 00:00:00 2001 From: Ivan Lausuch Date: Wed, 4 Oct 2023 12:48:31 +0200 Subject: [PATCH] Containers: retry on pulling image for test privileged mode https://progress.opensuse.org/issues/135518 --- tests/containers/privileged_mode.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/containers/privileged_mode.pm b/tests/containers/privileged_mode.pm index 81c402bd5e11..9e379a5f2eb0 100644 --- a/tests/containers/privileged_mode.pm +++ b/tests/containers/privileged_mode.pm @@ -14,6 +14,7 @@ use utils qw(validate_script_output_retry); use containers::utils qw(reset_container_network_if_needed); use Utils::Architectures; use version_utils qw(is_public_cloud is_jeos); +use utils qw(script_retry); sub run { my ($self, $args) = @_; @@ -25,6 +26,7 @@ sub run { reset_container_network_if_needed($runtime); my $image = "registry.suse.com/bci/bci-base:latest"; + script_retry("$runtime pull $image", delay => 60, retry => 3); record_info('Test', 'Launch a container with privileged mode');