mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-19 11:41:26 +00:00
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 <normand@linux.vnet.ibm.com>
This commit is contained in:
parent
47b2855d55
commit
b1662c5f9d
11
lib/utils.pm
11
lib/utils.pm
@ -224,8 +224,16 @@ sub do_bootloader {
|
|||||||
send_key "e";
|
send_key "e";
|
||||||
# ternary: 13 'downs' to reach the kernel line for installed
|
# ternary: 13 'downs' to reach the kernel line for installed
|
||||||
# system, 2 for UEFI installer
|
# 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) {
|
foreach my $i (1..$presses) {
|
||||||
|
sleep 1; # seems to have missed one down if too fast.
|
||||||
send_key "down";
|
send_key "down";
|
||||||
}
|
}
|
||||||
send_key "end";
|
send_key "end";
|
||||||
@ -234,6 +242,7 @@ sub do_bootloader {
|
|||||||
# in SLOF usb-xhci driver failed sometimes in powerpc
|
# in SLOF usb-xhci driver failed sometimes in powerpc
|
||||||
type_safely " $args{params}";
|
type_safely " $args{params}";
|
||||||
}
|
}
|
||||||
|
save_screenshot; # for debug purpose
|
||||||
# ctrl-X boots from grub editor mode
|
# ctrl-X boots from grub editor mode
|
||||||
send_key "ctrl-x";
|
send_key "ctrl-x";
|
||||||
# return boots all other cases
|
# return boots all other cases
|
||||||
|
Loading…
Reference in New Issue
Block a user