From 6f13064573dc1b3103c94160d6451885c1bcf192 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Wed, 1 Jun 2016 17:38:00 +0200 Subject: lvc: tidy some string concatenation --- cucumber/features/step_definitions/common_steps.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index fa000fe8..0bb57ec9 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -129,7 +129,7 @@ Given /^I intend to use ([a-z]*) mode$/ do |ui_mode| end def diui_png(name) - return "d-i_" + @ui_mode + "_" + name + ".png" + return "d-i_#{@ui_mode}_#{name}.png" end Given /^a computer$/ do @@ -271,13 +271,13 @@ Given /^I select the install mode$/ do boot_timeout = 60 on_screen, _ = @screen.waitAny(["d-i_boot_graphical-default.png","d-i_boot_text-default.png"], boot_timeout * PATIENCE) - debug_log("debug: found '"+on_screen+"' in the bootspash", :color => :blue) + debug_log("debug: found '#{on_screen}' in the bootspash", :color => :blue) if ("d-i_boot_text-default.png" == on_screen) == ("gui" == @ui_mode) @screen.type(Sikuli::Key.DOWN) 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}" + + #@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 -- cgit v1.2.3-54-g00ecf