[Qa-jenkins-scm] [jenkins.debian.net] 06/08: lvc: look out for the "No Kernel Modules" screen, and fail if seen
Holger Levsen
holger at layer-acht.org
Wed Jan 25 00:15:06 UTC 2017
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 346458383bc65c96acc06fcdc601c9cce2d09d81
Author: Philip Hands <phil at hands.com>
Date: Tue Jan 24 22:39:10 2017 +0100
lvc: look out for the "No Kernel Modules" screen, and fail if seen
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
cucumber/features/images/d-i_gui_NoKernelModules.png | Bin 0 -> 5994 bytes
cucumber/features/step_definitions/common_steps.rb | 11 ++++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/cucumber/features/images/d-i_gui_NoKernelModules.png b/cucumber/features/images/d-i_gui_NoKernelModules.png
new file mode 100644
index 0000000..b89b6df
Binary files /dev/null and b/cucumber/features/images/d-i_gui_NoKernelModules.png differ
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index 3f7eb1b..497d661 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -461,8 +461,17 @@ Given /^I select the non-GUI task$/ do
end
Given /^I select Combi Debian-Edu profile$/ do
- @screen.wait(diui_png("Edu-Profile"), 2 * 60 * PATIENCE)
+ on_screen, _ = @screen.waitAny([diui_png("Edu-Profile"),diui_png("NoKernelModules")], 2 * 60 * PATIENCE)
# just acept the default combination
+ if on_screen == diui_png("NoKernelModules")
+ if "gui" == @ui_mode
+ @screen.type(Sikuli::Key.F4) # for this to work, we need to remap the keyboard -- CtrlAltF4 is apparently untypable :-(
+ else
+ @screen.type(Sikuli::Key.F4, Sikuli::KeyModifier.ALT)
+ end
+ sleep(10)
+ raise "No Kernel Modules Found (probably version skew between the .iso and the archive)"
+ end
if "gui" == @ui_mode
@screen.wait(diui_png("CONTINUEunselected"), 10 * PATIENCE)
--
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