summaryrefslogtreecommitdiffstats
path: root/cucumber
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-05-20 23:43:49 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-21 11:33:25 +0200
commit5b9dd00b7dd07333d0dc7fca2b59fa5172b83509 (patch)
treeaf1f7ad16c9a86122be9199ecda9caf5cd23af3c /cucumber
parentd3f1f5f7e32b9c2a030e1f04a96356b0177ae61a (diff)
downloadjenkins.debian.net-5b9dd00b7dd07333d0dc7fca2b59fa5172b83509.tar.xz
lvc: parameter-ise the hunt for a login prompt
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'cucumber')
-rw-r--r--cucumber/features/step_definitions/common_steps.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 810a5058..86ad60f5 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -515,12 +515,8 @@ Given /^I wait for the reboot$/ do
@screen.wait(bootsplash, 10 * 60)
end
-Given /^I should see a console Login prompt$/ do
- @screen.wait("DebianLoginPromptVT.png", 20 * 60)
-end
-
-Given /^I should see a XFCE Login prompt$/ do
- @screen.wait("DebianLoginPromptXFCE.png", 20 * 60)
+Given /^I should see a ([a-zA-Z]*) Login prompt$/ do |style|
+ @screen.wait("DebianLoginPrompt"+style+".png", 20 * 60)
end
def bootsplash