From b1662c5f9d52677d6371dfa94db8fcc79c596510 Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Mon, 27 Mar 2017 06:42:15 -0400 Subject: [PATCH] Add a 1s delay between each down key in do_bootloader and call save_screenshot to visually check for debug purpose only Also change for PowerPC the number of down key to 12 (rather than 12) Seems to be mandatory since 20170327. Signed-off-by: Michel Normand --- lib/utils.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index 3162ff09..b8e1c001 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -224,8 +224,16 @@ sub do_bootloader { send_key "e"; # ternary: 13 'downs' to reach the kernel line for installed # system, 2 for UEFI installer - my $presses = $args{postinstall} ? 13 : 2; + # since 20170328 PowerPC Rawhide and f26 are failing with 13 + # but work with 12 and added sleep 1 in loop. + my $presses; + if (get_var('OFW')) { + $presses = $args{postinstall} ? 12 : 2; + } else { + $presses = $args{postinstall} ? 13 : 2; + } foreach my $i (1..$presses) { + sleep 1; # seems to have missed one down if too fast. send_key "down"; } send_key "end"; @@ -234,6 +242,7 @@ sub do_bootloader { # in SLOF usb-xhci driver failed sometimes in powerpc type_safely " $args{params}"; } + save_screenshot; # for debug purpose # ctrl-X boots from grub editor mode send_key "ctrl-x"; # return boots all other cases