Test: Don't worry if VBoxManage failed.

This commit is contained in:
Mitchell Hashimoto 2011-11-22 19:28:21 -08:00
parent 2bcd68d323
commit 5e4dffb7e1
1 changed files with 1 additions and 2 deletions

View File

@ -161,8 +161,7 @@ module Acceptance
# We add a timeout onto this because sometimes for seemingly no # We add a timeout onto this because sometimes for seemingly no
# reason it will simply freeze, although the VM is successfully # reason it will simply freeze, although the VM is successfully
# "aborted." The timeout gets around this strange behavior. # "aborted." The timeout gets around this strange behavior.
result = execute("VBoxManage", "controlvm", data[:uuid], "poweroff", :timeout => 5) execute("VBoxManage", "controlvm", data[:uuid], "poweroff", :timeout => 5)
raise Exception, "VM halt failed!" if result.exit_status != 0
rescue TimeoutExceeded => e rescue TimeoutExceeded => e
@logger.info("Failed to poweroff VM '#{data[:uuid]}'. Killing process.") @logger.info("Failed to poweroff VM '#{data[:uuid]}'. Killing process.")