summaryrefslogtreecommitdiffstats
path: root/cucumber/features/step_definitions/common_steps.rb
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-05-11 21:17:12 +0200
committerPhilip Hands <phil@hands.com>2016-05-12 00:33:31 +0200
commit4ca3bb793bc249b260ef255740781bd5ae84baff (patch)
treea884a393d67ed5251fa3d0fde91c9a3bdda000dd /cucumber/features/step_definitions/common_steps.rb
parentd7f98b96dce173cd73ffa25677e0211fd9b79929 (diff)
downloadjenkins.debian.net-4ca3bb793bc249b260ef255740781bd5ae84baff.tar.xz
try wibbling with the screens to keep the session alive
Diffstat (limited to 'cucumber/features/step_definitions/common_steps.rb')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 69fd238f..0e5c6876 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -456,9 +456,19 @@ Given /^in ([a-z]*) mode I select the Desktop task$/ do |ui_mode|
@screen.waitVanish(diui_png("Desktop+Gnome",ui_mode), 10)
end
-Given /^in ([a-z]*) mode I wait while the bulk of the packages are installed$/ do |ui_mode|
+Given /^in ([a-z]*) mode I wait while the ([a-z]* |)bulk of the packages are installed$/ do |ui_mode,vast|
@screen.wait(diui_png("InstallSoftware",ui_mode), 10)
- @screen.waitVanish(diui_png("InstallSoftware",ui_mode), 80 * 60)
+ if "vast " == vast
+ 40.times do
+ sleep(50)
+ @screen.type(Sikuli::Key.F4, Sikuli::KeyModifier.ALT)
+ sleep(10)
+ @screen.type(Sikuli::Key.F1, Sikuli::KeyModifier.ALT)
+ end
+ debug_log("debug: 50 mins in...", :color => :blue)
+ end
+ @screen.wait(diui_png("InstallSoftware",ui_mode), 10)
+ @screen.waitVanish(diui_png("InstallSoftware",ui_mode), 40 * 60)
end
Given /^in ([a-z]*) mode I install GRUB$/ do |ui_mode|