mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 14:03:09 +00:00
Fix #1674045 workaround for bootloader case
The initial implementation here has a problem if we spot the 'successful' screen briefly, then the system reboots normally, reaches the bootloader and proceeds past it all within 10 seconds; in this case we'll never actually spot the bootloader and do our stuff. This tweak should continue through the code block immediately if the bootloader shows up during the ten seconds, otherwise check again for the 'successful' screen and reboot. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
2e75cfe5db
commit
6dde0ea0c9
@ -242,8 +242,9 @@ sub do_bootloader {
|
|||||||
if (match_has_tag "upgrade_complete") {
|
if (match_has_tag "upgrade_complete") {
|
||||||
# this is a workaround for RHBZ #1674045 during upgrades
|
# this is a workaround for RHBZ #1674045 during upgrades
|
||||||
# let's check we didn't just happen to catch it for the
|
# let's check we didn't just happen to catch it for the
|
||||||
# brief time it's displayed normally...
|
# brief time it's displayed normally, and catch the boot
|
||||||
sleep 10;
|
# loader if it shows up
|
||||||
|
unless (check_screen $boottag, 10) {
|
||||||
if (check_screen "upgrade_complete") {
|
if (check_screen "upgrade_complete") {
|
||||||
record_soft_failure "Upgrade hung at end - probably RHBZ #1674045";
|
record_soft_failure "Upgrade hung at end - probably RHBZ #1674045";
|
||||||
power 'reset';
|
power 'reset';
|
||||||
@ -251,6 +252,7 @@ sub do_bootloader {
|
|||||||
# now let's just assume we'll get to the bootloader soon
|
# now let's just assume we'll get to the bootloader soon
|
||||||
assert_screen $boottag, 60;
|
assert_screen $boottag, 60;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if ($args{mutex}) {
|
if ($args{mutex}) {
|
||||||
# cancel countdown
|
# cancel countdown
|
||||||
send_key "left";
|
send_key "left";
|
||||||
|
Loading…
Reference in New Issue
Block a user