From 5b9dd00b7dd07333d0dc7fca2b59fa5172b83509 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Fri, 20 May 2016 23:43:49 +0200 Subject: lvc: parameter-ise the hunt for a login prompt Signed-off-by: Holger Levsen --- cucumber/features/step_definitions/common_steps.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cucumber/features') 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 -- cgit v1.2.3-70-g09d2