From 5e4dffb7e1bb6baeed5a9c9ca656989ee3c08bf5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 22 Nov 2011 19:28:21 -0800 Subject: [PATCH] Test: Don't worry if VBoxManage failed. --- test/acceptance/support/isolated_environment.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/acceptance/support/isolated_environment.rb b/test/acceptance/support/isolated_environment.rb index 98a95cee8..2fb57e08a 100644 --- a/test/acceptance/support/isolated_environment.rb +++ b/test/acceptance/support/isolated_environment.rb @@ -161,8 +161,7 @@ module Acceptance # We add a timeout onto this because sometimes for seemingly no # reason it will simply freeze, although the VM is successfully # "aborted." The timeout gets around this strange behavior. - result = execute("VBoxManage", "controlvm", data[:uuid], "poweroff", :timeout => 5) - raise Exception, "VM halt failed!" if result.exit_status != 0 + execute("VBoxManage", "controlvm", data[:uuid], "poweroff", :timeout => 5) rescue TimeoutExceeded => e @logger.info("Failed to poweroff VM '#{data[:uuid]}'. Killing process.")