Skip to content

Commit

Permalink
Containers: retry on pulling image for test privileged mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ilausuch committed Oct 4, 2023
1 parent 522c5e4 commit 8254008
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/containers/privileged_mode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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) = @_;
Expand All @@ -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", timeout => 300, delay => 120);

record_info('Test', 'Launch a container with privileged mode');

Expand Down

0 comments on commit 8254008

Please sign in to comment.