summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-12-27 13:30:08 +0000
committerintrigeri <intrigeri@boum.org>2016-12-27 13:32:17 +0000
commit2986dbc7b2f2d63a93b4cc150fc1e8a33dce79fd (patch)
treea1102c7c2e23f0da9d6e93268146e1da454f7dc2
parent5c4ca7af5763c52f8321bfa4b97af4a993c3690c (diff)
Test suite: don't assume Sikuli is fast.
-rw-r--r--features/step_definitions/erase_memory.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/features/step_definitions/erase_memory.rb b/features/step_definitions/erase_memory.rb
index 0966825..c2b684b 100644
--- a/features/step_definitions/erase_memory.rb
+++ b/features/step_definitions/erase_memory.rb
@@ -181,11 +181,14 @@ When /^I shutdown and wait for Tails to finish wiping the memory$/ do
$vm.spawn("halt")
check_if_memory_wipe_finished = Proc.new do
+ # Ideally we would want this proc to run in exactly 1s, so that retry_action
+ # would take exactly memory_wipe_timeout seconds. But it takes some time
+ # to run @screen.type and @screen.find, that depends on the host system,
+ # so we can't simply "sleep X".
# We spam keypresses to prevent console blanking from hiding the
# image we're waiting for
@screen.type(" ")
@screen.find('MemoryWipeCompleted.png')
- sleep 1
end
begin