[Qa-jenkins-scm] [jenkins.debian.net] 02/04: try wibbling with the screens to keep the session alive
Holger Levsen
holger at layer-acht.org
Wed May 11 22:42:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 4ca3bb793bc249b260ef255740781bd5ae84baff
Author: Philip Hands <phil at hands.com>
Date: Wed May 11 21:17:12 2016 +0200
try wibbling with the screens to keep the session alive
---
cucumber/features/step_definitions/common_steps.rb | 14 ++++++++++++--
cucumber/features/step_definitions/snapshots.rb | 4 ++--
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 69fd238..0e5c687 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 2e06410..1eb9fb8 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',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list