Merge pull request #336 from mhaskel/fix_acceptance_tests
authorAshley Penney <ashley.penney@puppetlabs.com>
Wed, 30 Jul 2014 19:09:40 +0000 (15:09 -0400)
committerAshley Penney <ashley.penney@puppetlabs.com>
Wed, 30 Jul 2014 19:09:40 +0000 (15:09 -0400)
Debian seems to have hanging apt-get and/or dpkg processes, so kill

spec/acceptance/unattended_upgrade_spec.rb

index 6a19f4e74e044c5efb5eaf352340241fabd047b1..09f4e2bed09888036c9c7f6f2b54dbfd9b6c5c85 100644 (file)
@@ -10,8 +10,8 @@ describe 'apt::unattended_upgrades class', :unless => UNSUPPORTED_PLATFORMS.incl
 
       # Attempted workaround for problems seen on debian with
       # something holding the package database open.
-      #shell('killall -9 apt-get')
-      #shell('killall -9 dpkg')
+      shell('killall -9 apt-get', { :acceptable_exit_codes => [0,1] })
+      shell('killall -9 dpkg', { :acceptable_exit_codes => [0,1] })
       apply_manifest(pp, :catch_failures => true)
     end