From e3df2d78987243daf2d3349af85d07c12d957fad Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Sun, 26 Jun 2016 15:45:21 +0200 Subject: lvc: reinstate remote shell (will break on testing for now) Signed-off-by: Holger Levsen --- cucumber/features/domains/default.xml | 3 +-- cucumber/features/step_definitions/common_steps.rb | 14 ++++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/cucumber/features/domains/default.xml b/cucumber/features/domains/default.xml index 5eec9b78..782ce473 100644 --- a/cucumber/features/domains/default.xml +++ b/cucumber/features/domains/default.xml @@ -37,12 +37,11 @@ - ---> diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index e544cf80..8b06c832 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -278,13 +278,15 @@ Given /^I select the install mode$/ do end end - #@screen.type(Sikuli::Key.TAB) - #@screen.type(' preseed/early_command="echo DPMS=-s\\\\ 0 > /lib/debian-installer.d/S61Xnoblank ; sed -i \'/XF86_Switch_VT_/s/ F\([0-9]\)/ XF86_Switch_VT_\1/\' /usr/share/X11/xkb/symbols/srvr_ctrl ; echo ttyS0::askfirst:-/bin/sh>>/etc/inittab;kill -HUP 1" blacklist=psmouse ' + @boot_options + - # Sikuli::Key.ENTER) - #$vm.wait_until_remote_shell_is_up + @screen.type(Sikuli::Key.TAB) + @boot_options = "" if @boot_options.nil? + @screen.type(' preseed/early_command="echo DPMS=-s\\\\ 0 > /lib/debian-installer.d/S61Xnoblank ; sed -i \'/XF86_Switch_VT_/s/ F\([0-9]\)/ XF86_Switch_VT_\1/\' /usr/share/X11/xkb/symbols/srvr_ctrl ; echo ttyS0::askfirst:-/bin/sh>>/etc/inittab;kill -HUP 1" blacklist=psmouse ' + @boot_options + + Sikuli::Key.ENTER) + debug_log("debug: wait for the remote shell to respond...", :color => :blue) + $vm.wait_until_remote_shell_is_up - debug_log("debug: About to type ENTER at the bootsplash", :color => :blue) - @screen.type(Sikuli::Key.ENTER) # we're disabling the above editing of the command line, since it's breaking on jenkins.debian.net for reasons unknown + #debug_log("debug: About to type ENTER at the bootsplash", :color => :blue) + #@screen.type(Sikuli::Key.ENTER) # we're disabling the above editing of the command line, since it's breaking on jenkins.debian.net for reasons unknown debug_log("debug: waiting for it to get to the 'English' prompt...", :color => :blue) @screen.wait(diui_png("English"), 3*60 * PATIENCE) # FIXME -- this is just to pause until the remote shell would have been up, so is a kludge debug_log("debug: found the 'English' prompt", :color => :blue) -- cgit v1.2.3-70-g09d2