[Qa-jenkins-scm] [jenkins.debian.net] 04/12: lvc: make alternate loginprompts configurable

Holger Levsen holger at layer-acht.org
Wed Jun 1 22:09:06 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 ce3295ea2cffd8a4f25d5b7ad6f93bf25ed64086
Author: Philip Hands <phil at hands.com>
Date:   Tue May 31 23:47:04 2016 +0200

    lvc: make alternate loginprompts configurable
---
 cucumber/features/images/DebianLoginPromptLXDE_d9.png | Bin 0 -> 1151 bytes
 cucumber/features/images/DebianLoginPromptXFCE_2.png  | Bin 8934 -> 0 bytes
 cucumber/features/images/DebianLoginPromptXFCE_d9.png | Bin 0 -> 1152 bytes
 cucumber/features/step_definitions/common_steps.rb    |  11 ++++++++++-
 4 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/cucumber/features/images/DebianLoginPromptLXDE_d9.png b/cucumber/features/images/DebianLoginPromptLXDE_d9.png
new file mode 100644
index 0000000..cc768ad
Binary files /dev/null and b/cucumber/features/images/DebianLoginPromptLXDE_d9.png differ
diff --git a/cucumber/features/images/DebianLoginPromptXFCE_2.png b/cucumber/features/images/DebianLoginPromptXFCE_2.png
deleted file mode 100644
index 2503d0a..0000000
Binary files a/cucumber/features/images/DebianLoginPromptXFCE_2.png and /dev/null differ
diff --git a/cucumber/features/images/DebianLoginPromptXFCE_d9.png b/cucumber/features/images/DebianLoginPromptXFCE_d9.png
new file mode 100644
index 0000000..5e23ce4
Binary files /dev/null and b/cucumber/features/images/DebianLoginPromptXFCE_d9.png differ
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 49fd5eb..188c6a2 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -552,7 +552,16 @@ Given /^I wait for the reboot$/ do
 end
 
 Given /^I should see a ([a-zA-Z]*) Login prompt$/ do |style|
-  @screen.waitAny(["DebianLoginPrompt"+style+".png","DebianLoginPromptXFCE_2.png"], 20 * 60) # FIXME - this _2 image should be configurable
+  def loginPrompt
+    {
+      'XFCE' => [ 'DebianLoginPromptXFCE.png', 'DebianLoginPromptXFCE_d9.png' ],
+      'KDE'  => [ 'DebianLoginPromptKDE.png',  'DebianLoginPromptKDE_d9.png' ],
+      'LXDE' => [ 'DebianLoginPromptLXDE.png', 'DebianLoginPromptLXDE_d9.png' ],
+      'VT'   => [ 'DebianLoginPromptVT.png' ],
+    }
+  end
+
+  @screen.waitAny(loginPrompt[style], 20 * 60)
 end
 
 def bootsplash

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