From c477db3b596e118e6321e9045a9029eab1b462ad Mon Sep 17 00:00:00 2001 From: lionce Date: Wed, 6 Nov 2019 14:25:09 +0200 Subject: [PATCH] MODULES-10062 - fix acceptance tests on sles --- spec/acceptance/install_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/acceptance/install_spec.rb b/spec/acceptance/install_spec.rb index 2cd7add..9fddc8c 100644 --- a/spec/acceptance/install_spec.rb +++ b/spec/acceptance/install_spec.rb @@ -71,6 +71,10 @@ context 'with failure cases' do end it 'fails on debian or RHEL when passed fake java_alternative and path' do - apply_manifest(bogus_alternative, expect_failures: true) + if os[:family] == 'sles' + apply_manifest(bogus_alternative, catch_failures: true) + else + apply_manifest(bogus_alternative, expect_failures: true) + end end end