From 70295394b5b1f2a6ee995cea47a1c23708ed9662 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Tue, 25 Oct 2016 13:25:48 +0200 Subject: lvc: wait longer for popcon prompt Signed-off-by: Holger Levsen --- cucumber/features/step_definitions/common_steps.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index f98dee50..96f1cce1 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -377,11 +377,13 @@ end Given /^I note that the Base system is being installed$/ do @screen.wait(diui_png("InstallingBaseSystem"), 30 * PATIENCE) + debug_log("debug: Found InstallingBaseSystem. Wait for it to vanish", :color => :blue) @screen.waitVanish(diui_png("InstallingBaseSystem"), 15 * 60 * PATIENCE) + debug_log("debug: InstallingBaseSystem vanished", :color => :blue) end Given /^I accept the default mirror$/ do - on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("MirrorCountry")], 5 * 60 * PATIENCE) + on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("MirrorCountry")], 10 * 60 * PATIENCE) if diui_png("MirrorCountry") == on_screen @screen.wait(diui_png("MirrorCountry"), 10 * 60 * PATIENCE) @screen.type(Sikuli::Key.ENTER) @@ -410,7 +412,7 @@ Given /^I neglect to scan more CDs$/ do end Given /^I ignore Popcon$/ do - on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("ChooseSoftware")], 10 * 60) + on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("ChooseSoftware")], 10 * 60 * PATIENCE) if diui_png("ChooseSoftware") != on_screen if on_screen == diui_png("BadMirror") if "gui" == @ui_mode -- cgit v1.2.3-70-g09d2