Skip to content

Commit

Permalink
virt_autotest: enhancement reboot_and_wait_up_normal for s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxuguang committed Jul 8, 2024
1 parent c5e0e70 commit 34f511f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions products/sle/main.pm
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,8 @@ elsif (get_var("VIRT_AUTOTEST")) {
loadtest "virt_autotest/update_package";
# Skip reset_partition for s390x due to there just be 42Gib disk space for each s390x LPAR
loadtest "virt_autotest/reset_partition" if (!is_s390x);
# Skip reboot_and_wait_up_normal for s390x due to new changes from svirt backend for power_action_utils::power_action (see poo#151786)
loadtest "virt_autotest/reboot_and_wait_up_normal" if (!get_var('AUTOYAST') && get_var('REPO_0_TO_INSTALL') && (!is_s390x));
loadtest "virt_autotest/reboot_and_wait_up_normal" if (!get_var('AUTOYAST') && get_var('REPO_0_TO_INSTALL'));
loadtest "boot/reconnect_mgmt_console" if (is_s390x);
loadtest "virt_autotest/download_guest_assets" if get_var("SKIP_GUEST_INSTALL") && is_x86_64;
}
if (get_var("VIRT_PRJ1_GUEST_INSTALL")) {
Expand Down
6 changes: 2 additions & 4 deletions tests/virt_autotest/reboot_and_wait_up.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use warnings;
use testapi;
use ipmi_backend_utils;
use base "proxymode";
use power_action_utils 'power_action';
use power_action_utils "power_action";
use Utils::Architectures;
use virt_autotest::utils;

Expand All @@ -23,9 +23,7 @@ sub reboot_and_wait_up {
if (is_s390x) {
record_info('INFO', 'Reboot LPAR');
#Reboot s390x lpar
power_action('reboot', observe => 1, keepconsole => 1);
my $svirt = select_console('svirt', await_console => 0);
return;
power_action('reboot', observe => 1, keepconsole => 1, first_reboot => 1);
}

if (get_var("PROXY_MODE")) {
Expand Down

0 comments on commit 34f511f

Please sign in to comment.