From bd25f7a58aa38b34c3532d1cd2c83273d9e7f81e Mon Sep 17 00:00:00 2001 From: Eric Putnam Date: Thu, 13 Oct 2016 14:20:20 -0700 Subject: [PATCH] ci fix for install_spec --- spec/acceptance/install_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/install_spec.rb b/spec/acceptance/install_spec.rb index cd6364f..bf721b9 100644 --- a/spec/acceptance/install_spec.rb +++ b/spec/acceptance/install_spec.rb @@ -136,14 +136,17 @@ end describe 'failure cases' do # C14711 - it 'should fail to install java with an incorrect version' do - pp = <<-EOS + # SLES 10 returns an exit code of 0 on zypper failure + unless fact('operatingsystem') == 'SLES' and fact('operatingsystemrelease') < '11' + it 'should fail to install java with an incorrect version' do + pp = <<-EOS class { 'java': version => '14.5', } EOS apply_manifest(pp, :expect_failures => true) + end end # C14712