Skip to content

Commit

Permalink
Avoid failures when install_simp_repos is allowed to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
silug committed Sep 18, 2024
1 parent 684494f commit f80644f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions spec/acceptance/suites/default/install_simp_deps_repo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
end

context 'default settings' do
before(:all) { install_simp_repos(host) }
before(:all) do
install_simp_repos(host)
rescue => e
if expect_failures
warn e.message
else
raise e
end
end

it 'enables the correct repos' do
skip "#{host} is not supported yet" if expect_failures
Expand All @@ -34,7 +42,15 @@
end

context 'when passed a disabled list ' do
before(:all) { install_simp_repos(host, ['simp-community-simp'] ) }
before(:all) do
install_simp_repos(host, ['simp-community-simp'] )
rescue => e
if expect_failures
warn e.message
else
raise e
end
end

it 'enables the correct repos' do
skip "#{host} is not supported yet" if expect_failures
Expand Down

0 comments on commit f80644f

Please sign in to comment.