[Qa-jenkins-scm] [jenkins.debian.net] 10/12: lvc: wait for the right image to vanish

Holger Levsen holger at layer-acht.org
Wed Jun 1 22:09:10 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 2703378ec189bfb3fd6f664ef27640e829edafbc
Author: Philip Hands <phil at hands.com>
Date:   Wed Jun 1 17:36:54 2016 +0200

    lvc: wait for the right image to vanish
---
 cucumber/features/step_definitions/common_steps.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index bfdc002..fa000fe 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -468,7 +468,8 @@ Given /^I select the ([A-Z][[:alpha:]]*) task$/ do |desktop|
   menu.index(desktop).times do
     @screen.type(Sikuli::Key.DOWN)
   end
-  @screen.wait(diui_png("Desktop+" + desktop), 10 * PATIENCE)
+  expected_result = "Desktop+" + desktop
+  @screen.wait(diui_png(expected_result), 10 * PATIENCE)
 
   if "gui" == @ui_mode
     @screen.wait(diui_png("CONTINUEunselected"), 10 * PATIENCE)
@@ -476,7 +477,7 @@ Given /^I select the ([A-Z][[:alpha:]]*) task$/ do |desktop|
     @screen.wait(diui_png("CONTINUEselected"), 10 * PATIENCE)
   end
   @screen.type(Sikuli::Key.ENTER)
-  @screen.waitVanish(diui_png("Desktop+Gnome"), 10 * PATIENCE)
+  @screen.waitVanish(diui_png(expected_result), 10 * PATIENCE)
 end
 
 Given /^I wait while the bulk of the packages are installed$/ do

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