mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-29 00:16:30 +00:00
Workaround RHBZ#1618928 (hit space till errors go away)
Per Neal Gompa boot will proceed if we just page through the error(?) messages displayed when #1618928 happens, so let's do that to let the tests get further and see what else is broken. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
6d0569b836
commit
7df2bfb4f3
42
lib/utils.pm
42
lib/utils.pm
@ -61,7 +61,27 @@ sub boot_to_login_screen {
|
|||||||
sleep 5;
|
sleep 5;
|
||||||
$count -= 1;
|
$count -= 1;
|
||||||
}
|
}
|
||||||
assert_screen "login_screen", $args{timeout};
|
assert_screen ["login_screen", "grub_error_page"], $args{timeout};
|
||||||
|
# FIXME grub_error_page is a workaround for #1618928, can probably
|
||||||
|
# be removed when that bug is fixed.
|
||||||
|
my $loopcount = 10;
|
||||||
|
while (match_has_tag "grub_error_page") {
|
||||||
|
my $timeout = $args{timeout};
|
||||||
|
$timeout = 300 if ($timeout > 300);
|
||||||
|
# we cap 300 as the timeouts inside this loop at 300 as it
|
||||||
|
# should always be the right number - if this is a
|
||||||
|
# post-upgrade case or the kickstart install case, that
|
||||||
|
# already finished by now
|
||||||
|
send_key "spc";
|
||||||
|
$loopcount -= 1;
|
||||||
|
if ($loopcount == 0) {
|
||||||
|
# let's not loop forever...
|
||||||
|
assert_screen "login_screen", $timeout;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
assert_screen ["login_screen", "grub_error_page"], $timeout;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (match_has_tag "graphical_login") {
|
if (match_has_tag "graphical_login") {
|
||||||
wait_still_screen 10, 30;
|
wait_still_screen 10, 30;
|
||||||
assert_screen "login_screen";
|
assert_screen "login_screen";
|
||||||
@ -210,12 +230,24 @@ sub do_bootloader {
|
|||||||
);
|
);
|
||||||
# if not postinstall not UEFI and not ofw, syslinux
|
# if not postinstall not UEFI and not ofw, syslinux
|
||||||
$args{bootloader} //= ($args{uefi} || $args{postinstall} || $args{ofw}) ? "grub" : "syslinux";
|
$args{bootloader} //= ($args{uefi} || $args{postinstall} || $args{ofw}) ? "grub" : "syslinux";
|
||||||
if ($args{uefi}) {
|
|
||||||
# we use the firmware-type specific tags because we want to be
|
# we use the firmware-type specific tags because we want to be
|
||||||
# sure we actually did a UEFI boot
|
# sure we actually did a UEFI boot
|
||||||
assert_screen "bootloader_uefi", $args{timeout};
|
my $boottag = "bootloader_bios";
|
||||||
} else {
|
$boottag = "bootloader_uefi" if ($args{uefi});
|
||||||
assert_screen "bootloader_bios", $args{timeout};
|
# FIXME grub_error_page is a workaround for #1618928, can probably
|
||||||
|
# be removed when that bug is fixed
|
||||||
|
assert_screen [$boottag, "grub_error_page"], $args{timeout};
|
||||||
|
my $loopcount = 10;
|
||||||
|
while (match_has_tag "grub_error_page") {
|
||||||
|
send_key "spc";
|
||||||
|
$loopcount -= 1;
|
||||||
|
if ($loopcount == 0) {
|
||||||
|
# let's not loop forever
|
||||||
|
assert_screen $boottag;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
assert_screen [$boottag, "grub_error_page"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($args{mutex}) {
|
if ($args{mutex}) {
|
||||||
# cancel countdown
|
# cancel countdown
|
||||||
|
17
needles/console/grub-error-page-20180818.json
Normal file
17
needles/console/grub-error-page-20180818.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"properties": [
|
||||||
|
"workaround"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"grub_error_page"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 10,
|
||||||
|
"ypos": 387,
|
||||||
|
"width": 51,
|
||||||
|
"height": 10,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/console/grub-error-page-20180818.png
Normal file
BIN
needles/console/grub-error-page-20180818.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
Loading…
Reference in New Issue
Block a user