diff --git a/spec/acceptance/install_spec.rb b/spec/acceptance/install_spec.rb index 8d980b3..cd6364f 100644 --- a/spec/acceptance/install_spec.rb +++ b/spec/acceptance/install_spec.rb @@ -35,7 +35,14 @@ describe "installing java", :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfa } EOS - apply_manifest(pp, :catch_failures => true) + # With the version of java that ships with pe on debian wheezy, update-alternatives + # throws an error on the first run due to missing alternative for policytool. It still + # updates the alternatives for java + if fact('operatingsystem') == 'Debian' and fact('lsbdistcodename') == 'wheezy' + apply_manifest(pp) + else + apply_manifest(pp, :catch_failures => true) + end apply_manifest(pp, :catch_changes => true) end end