summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cucumber/features/step_definitions/common_steps.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index c40974f7..f98dee50 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -141,6 +141,13 @@ Given /^the computer has (\d+) ([[:alpha:]]+) of RAM$/ do |size, unit|
$vm.set_ram_size(size, unit)
end
+Then /^the VM shuts down within (\d+) minutes$/ do |mins|
+ timeout = 60*mins.to_i
+ try_for(timeout, :msg => "VM is still running after #{timeout} seconds") do
+ ! $vm.is_running?
+ end
+end
+
Given /^the computer is set to boot from the Tails DVD$/ do
$vm.set_cdrom_boot(TAILS_ISO)
end