diff --git a/spec/acceptance/suites/default/install_simp_deps_repo_spec.rb b/spec/acceptance/suites/default/install_simp_deps_repo_spec.rb index 9990d47..dd31380 100644 --- a/spec/acceptance/suites/default/install_simp_deps_repo_spec.rb +++ b/spec/acceptance/suites/default/install_simp_deps_repo_spec.rb @@ -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 @@ -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