Skip to content

Commit

Permalink
Merge pull request #20564 from hadeskun/rearRestore
Browse files Browse the repository at this point in the history
Rear restore in ha
  • Loading branch information
alvarocarvajald authored Nov 6, 2024
2 parents 01a46ab + 89b58e8 commit c524c3f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/ha/rear_restore.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use warnings;
use testapi;
use serial_terminal 'select_serial_terminal';
use power_action_utils 'power_action';
use Utils::Architectures;

sub run {
my ($self) = @_;
Expand All @@ -23,7 +24,18 @@ sub run {
assert_screen('rear-boot-screen');
send_key_until_needlematch('rear-recover-selected', 'up');
send_key 'ret';
$self->wait_boot_past_bootloader;

# Handle the output error about busy tty0 in ppc64
if (is_ppc64le) {
check_screen('rear_restore-tty-20241105', 120);
send_key 'ret';
type_string("root\n");
wait_still_screen(3);
type_string("clear\n");
}
else {
$self->wait_boot_past_bootloader;
}

# Restore the OS backup
set_var('LIVETEST', 1); # Because there is no password in ReaR miniOS
Expand Down

0 comments on commit c524c3f

Please sign in to comment.