Merge pull request #96 from mhaskel/wheezy_test_fix

Acceptance test fix for wheezy
This commit is contained in:
Travis Fields
2014-12-29 17:28:00 -08:00

View File

@@ -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