Skip to content

Commit

Permalink
Ensure match reboot for autoyast test on X86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
hjluo committed Dec 27, 2024
1 parent b2e274e commit 0abf10f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/yam/autoyast/resize_luks2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<general>
<mode>
<confirm config:type="boolean">false</confirm>
<final_reboot config:type="boolean">true</final_reboot>
</mode>
</general>
<networking>
Expand Down
10 changes: 7 additions & 3 deletions tests/autoyast/installation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ sub run {
# Autoyast reboot automatically without confirmation, usually assert 'bios-boot' that is not existing on zVM
# So push a needle to check upcoming reboot on zVM that is a way to indicate the stage done
# For bsc#1231522, need match reboot popup on powerVM to reboot after installation.
push @needles, 'autoyast-stage1-reboot-upcoming' if is_s390x || (is_pvm && !is_upgrade && is_sle('<15-SP7')) || (check_var('VIRSH_VMM_FAMILY', 'xen') && check_var('VIRSH_VMM_TYPE', 'hvm'));
# For bsc#1231522, for xen-hvm autoyast, we need to match reboot popup.
push @needles, 'autoyast-stage1-reboot-upcoming' if is_s390x || (is_pvm && !is_upgrade && is_sle('<15-SP7'));
# Similar situation over IPMI backend, we can check against PXE menu
push @needles, qw(prague-pxe-menu qa-net-selection) if is_ipmi and !get_var('IPXE');
# Import untrusted certification for SMT
Expand Down Expand Up @@ -180,8 +181,11 @@ sub run {
#Verify timeout and continue if there was a match
next unless verify_timeout_and_check_screen(($timer += $check_time), \@needles);
if (match_has_tag('autoyast-boot')) {
send_key 'ret'; # press enter if grub timeout is disabled, like we have in reinstall scenarios
last; # if see grub, we get to the second stage, as it appears after bios-boot which we may miss
# press enter if grub timeout is disabled, like we have in reinstall scenarios
send_key 'ret';
# if see grub, we get to the second stage, as it appears after bios-boot which we may miss
# for case with startshell we need to back to the shell after reboot page shows
last unless (get_var('EXTRABOOTPARAMS', '') =~ m/startshell=1/);
}
elsif (match_has_tag('import-untrusted-gpg-key')) {
handle_untrusted_gpg_key;
Expand Down

0 comments on commit 0abf10f

Please sign in to comment.