Acceptance test fix for wheezy

This commit is contained in:
Morgan Haskel
2014-12-29 17:13:06 -08:00
parent bac6b37e64
commit 619cdf99c4

View File

@@ -35,7 +35,14 @@ describe "installing java", :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfa
} }
EOS 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) apply_manifest(pp, :catch_changes => true)
end end
end end