summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-12-27 20:43:03 +0100
committeranonym <anonym@riseup.net>2016-12-27 20:43:03 +0100
commit925ea0d924dd39a15fa69c183c15a947e5783876 (patch)
treeb0ceac8bfdd68d5b075f0116ddacff7c933db88d
parent2f0609e41019b400fa8cd9d85973fbaeabb6c1c6 (diff)
Add sanity check.
-rw-r--r--features/step_definitions/common_steps.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 151d821..26e7523 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -238,7 +238,11 @@ end
def memory_wipe_timeout
nr_gigs_of_ram = convert_from_bytes($vm.get_ram_size_in_bytes, 'GiB').ceil
- nr_gigs_of_ram*30
+ timeout = nr_gigs_of_ram*30
+ assert(timeout < 9*60,
+ "The memory wipe timeout is #{timeout}s which is exceeding" +
+ "(or close enough to) the 10m timeout imposed by debug=wipemem")
+ return timeout
end
Given /^Tails is at the boot menu's cmdline( after rebooting)?$/ do |reboot|