Skip to content

Commit

Permalink
Fix Kernel Update Handling for Serial Terminals in update_kernel.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyrkatkalov committed Aug 14, 2024
1 parent 57d02a7 commit b68cee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/kernel/update_kernel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ sub boot_to_console {
sub run {
my $self = shift;

if ((is_ipmi && get_var('LTP_BAREMETAL')) || is_transactional) {
if ((is_ipmi && get_var('LTP_BAREMETAL')) || is_transactional || get_var('FORCE_SERIAL_TERMINAL')) {
# System is already booted after installation, just switch terminal
select_serial_terminal;
} else {
Expand Down Expand Up @@ -477,7 +477,7 @@ sub run {
reboot_on_changes;
} elsif (!get_var('KGRAFT')) {
power_action('reboot', textmode => 1);
$self->wait_boot if get_var('LTP_BAREMETAL');
$self->wait_boot if (get_var('FORCE_SERIAL_TERMINAL') || get_var('LTP_BAREMETAL'));
}
}

Expand Down

0 comments on commit b68cee5

Please sign in to comment.