summaryrefslogtreecommitdiffstats
path: root/cucumber/features
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
parentd7f98b96dce173cd73ffa25677e0211fd9b79929 (diff)
downloadjenkins.debian.net-4ca3bb793bc249b260ef255740781bd5ae84baff.tar.xz
try wibbling with the screens to keep the session alive
Diffstat (limited to 'cucumber/features')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb14
-rw-r--r--cucumber/features/step_definitions/snapshots.rb4
2 files changed, 14 insertions, 4 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|
diff --git a/cucumber/features/step_definitions/snapshots.rb b/cucumber/features/step_definitions/snapshots.rb
index 2e064107..1eb9fb84 100644
--- a/cucumber/features/step_definitions/snapshots.rb
+++ b/cucumber/features/step_definitions/snapshots.rb
@@ -101,7 +101,7 @@ def checkpoints
:parent_checkpoint => 'boot-d-i-to-tasksel',
:steps => [
'in text mode I select the Desktop task',
- 'in text mode I wait while the bulk of the packages are installed',
+ 'in text mode I wait while the vast bulk of the packages are installed',
'in text mode I install GRUB',
'in text mode I allow reboot after the install is complete',
'I wait for the reboot',
@@ -115,7 +115,7 @@ def checkpoints
:parent_checkpoint => 'boot-g-i-to-tasksel',
:steps => [
'in gui mode I select the Desktop task',
- 'in gui mode I wait while the bulk of the packages are installed',
+ 'in gui mode I wait while the vast bulk of the packages are installed',
'in gui mode I install GRUB',
'in gui mode I allow reboot after the install is complete',
'I wait for the reboot',