diff --git a/cookbooks/aws-parallelcluster-environment/test/controls/lustre_spec.rb b/cookbooks/aws-parallelcluster-environment/test/controls/lustre_spec.rb index 720e12718..19936cab3 100644 --- a/cookbooks/aws-parallelcluster-environment/test/controls/lustre_spec.rb +++ b/cookbooks/aws-parallelcluster-environment/test/controls/lustre_spec.rb @@ -20,7 +20,7 @@ end describe yum.repo('aws-fsx') do - before { retry_helpers.wait_for_command("yum -v repolist all 2>/dev/null | grep -q 'aws-fsx'") } + before { retry_helpers.wait_for_command("yum -v repolist all 2>/dev/null | grep -q 'aws-fsx'") rescue nil } # rubocop:disable Style/RescueModifier it { should exist } it { should be_enabled } its('baseurl') { should include 'fsx-lustre-client-repo.s3.amazonaws.com' } @@ -49,7 +49,7 @@ end describe yum.repo('aws-fsx') do - before { retry_helpers.wait_for_command("yum -v repolist all 2>/dev/null | grep -q 'aws-fsx'") } + before { retry_helpers.wait_for_command("yum -v repolist all 2>/dev/null | grep -q 'aws-fsx'") rescue nil } # rubocop:disable Style/RescueModifier it { should exist } it { should be_enabled } its('baseurl') { should include 'fsx-lustre-client-repo.s3.amazonaws.com' } @@ -83,7 +83,7 @@ if os_properties.alinux2? describe yum.repo('amzn2extra-lustre') do - before { retry_helpers.wait_for_command("yum -v repolist all 2>/dev/null | grep -q 'amzn2extra-lustre'") } + before { retry_helpers.wait_for_command("yum -v repolist all 2>/dev/null | grep -q 'amzn2extra-lustre'") rescue nil } # rubocop:disable Style/RescueModifier it { should exist } it { should be_enabled } end