From 66e05edbe77fc20a4d4681dbfd62376eb1f2a2d4 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Wed, 30 Jul 2014 14:40:20 -0400 Subject: [PATCH] Debian seems to have hanging apt-get and/or dpkg processes, so kill those. --- spec/acceptance/unattended_upgrade_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/unattended_upgrade_spec.rb b/spec/acceptance/unattended_upgrade_spec.rb index 6a19f4e..09f4e2b 100644 --- a/spec/acceptance/unattended_upgrade_spec.rb +++ b/spec/acceptance/unattended_upgrade_spec.rb @@ -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 -- 2.45.2