summaryrefslogtreecommitdiffstats
path: root/cucumber
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2017-01-25 22:31:14 +0100
committerHolger Levsen <holger@layer-acht.org>2017-01-25 23:15:54 +0100
commitb0ab078f78601766f0a977c901593c31e58cb5c0 (patch)
treee23468747ad69f6f8eb7dbaa092ea3dae705b3ad /cucumber
parent20ee364665ffb3e82e0fe25c0ff9bba4d05ce118 (diff)
downloadjenkins.debian.net-b0ab078f78601766f0a977c901593c31e58cb5c0.tar.xz
lvc: deal with Scan CD/DVD prompt
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'cucumber')
-rw-r--r--cucumber/features/images/d-i_gui_ScanCD.pngbin1779 -> 12520 bytes
-rw-r--r--cucumber/features/step_definitions/common_steps.rb5
2 files changed, 4 insertions, 1 deletions
diff --git a/cucumber/features/images/d-i_gui_ScanCD.png b/cucumber/features/images/d-i_gui_ScanCD.png
index 43ff7643..93fea2b6 100644
--- a/cucumber/features/images/d-i_gui_ScanCD.png
+++ b/cucumber/features/images/d-i_gui_ScanCD.png
Binary files differ
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index cbedbe92..328c5661 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -397,7 +397,7 @@ Given /^I note that the Base system is being installed$/ do
end
Given /^I accept the default mirror$/ do
- on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("MirrorCountry")], 10 * 60 * PATIENCE)
+ on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("MirrorCountry"),diui_png("ScanCD")], 10 * 60 * PATIENCE)
if diui_png("MirrorCountry") == on_screen
@screen.wait(diui_png("MirrorCountry"), 10 * 60 * PATIENCE)
@screen.type(Sikuli::Key.ENTER)
@@ -406,6 +406,9 @@ Given /^I accept the default mirror$/ do
@screen.wait(diui_png("HttpProxy"), 5 * PATIENCE)
@screen.type("http://local-http-proxy:3128/" + Sikuli::Key.ENTER)
#@screen.type(Sikuli::Key.ENTER)
+ elsif diui_png("ScanCD") == on_screen
+ @screen.type(Sikuli::Key.ENTER)
+ step("I accept the default mirror")
else
step("I ignore Popcon")
end