[Qa-jenkins-scm] [jenkins.debian.net] 01/01: lvc: deal with preseed install shutting down rather quickly

Holger Levsen holger at layer-acht.org
Tue Nov 15 15:59:49 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 af5c582431fc7e1200d63324e088fad89cbe07e2
Author: Philip Hands <phil at hands.com>
Date:   Fri Nov 4 00:47:18 2016 +0100

    lvc: deal with preseed install shutting down rather quickly
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 cucumber/features/step_definitions/common_steps.rb | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 150c21f..9b18179 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -506,8 +506,14 @@ Given /^I wait while the bulk of the packages are installed$/ do
   failed = false
   try_for(120*60, :msg => "it seems that the install stalled (timing-out after 2 hours)") do
     found = false
+    sleep(30)
     debug_log("debug: check for Install GRUB/Software", :color => :blue)
-    hit, _ = @screen.waitAny([diui_png("InstallGRUB"),diui_png("InstallGRUB-heading"),diui_png("InstallationStepFailed"),diui_png("InstallSoftware")], 2*60)
+    if $vm.is_running?
+      hit, _ = @screen.waitAny([diui_png("InstallGRUB"),diui_png("InstallGRUB-heading"),diui_png("InstallationStepFailed"),diui_png("InstallSoftware")], 10)
+    else
+      found = true
+      hit = ''
+    end
     debug_log("debug: found #{hit}", :color => :blue)
     case hit
     when diui_png("InstallSoftware"), diui_png("InstallationStepFailed")
@@ -518,7 +524,7 @@ Given /^I wait while the bulk of the packages are installed$/ do
         @screen.type(Sikuli::Key.F4, Sikuli::KeyModifier.ALT)
       end
       debug_log("debug: typed F4, pausing...", :color => :blue)
-      sleep(10)
+      sleep(5)
       debug_log("debug: slept 10", :color => :blue)
       if diui_png("InstallationStepFailed") == hit
         failed = true

-- 
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