Commit 6cbf5de2 authored by intrigeri's avatar intrigeri
Browse files

Test suite: wait less and in a less resource-hungry way for installation to complete.

15 minutes should be largely enough on systems where we run the test suite in
practice these days.

Besides, every waiting iteration uses quite some CPU so let's sleep 10 seconds
between each of them: worst case, this increases the run time of each affected
scenario by 9 seconds, which is negligible compared to their total run time.
parent 619bf11b
...@@ -195,7 +195,7 @@ When /^I (install|reinstall|upgrade) Tails (?:to|on) USB drive "([^"]+)" (by clo ...@@ -195,7 +195,7 @@ When /^I (install|reinstall|upgrade) Tails (?:to|on) USB drive "([^"]+)" (by clo
end end
@installer.button(label).click @installer.button(label).click
@installer.child('Question', roleName: 'alert').button('Yes').click @installer.child('Question', roleName: 'alert').button('Yes').click
try_for(30*60) do try_for(15*60, { :delay => 10 }) do
@installer @installer
.child('Information', roleName: 'alert') .child('Information', roleName: 'alert')
.child('Installation complete!', roleName: 'label') .child('Installation complete!', roleName: 'label')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment