Skip to content

Commit

Permalink
Enable s390x install tests on sle16
Browse files Browse the repository at this point in the history
  • Loading branch information
rfan1 committed Feb 6, 2025
1 parent 99328f7 commit 239f484
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions schedule/functional/sle16/agama-create-hdd-textmode_s390x_kvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: agama-create-hdd-textmode_s390x_kvm
description: >
Install sle16 via agama auto on pvm setup, but it can not publish qcow2 image
schedule:
- installation/bootloader_zkvm
- installation/agama_reboot
- installation/first_boot
- console/system_prepare
- console/hostname
- console/force_scheduled_tasks
- shutdown/grub_set_bootargs
- shutdown/cleanup_before_shutdown
- shutdown/shutdown
- shutdown/svirt_upload_assets
7 changes: 6 additions & 1 deletion tests/installation/agama_reboot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ use version_utils qw(is_leap is_sle);
use utils;
use Utils::Logging qw(export_healthcheck_basic);
use x11utils 'ensure_unlocked_desktop';
use Utils::Backends qw(is_ipmi is_pvm);
use Utils::Backends qw(is_ipmi is_pvm is_svirt);
use Utils::Architectures qw(is_aarch64 is_s390x);
use power_action_utils 'assert_shutdown_and_restore_system';

sub upload_agama_logs {
return if (get_var('NOLOGS'));
Expand Down Expand Up @@ -73,6 +74,10 @@ sub run {
# Swith back to sol console, then user can monitor the boot log
select_console 'sol', await_console => 0 if is_ipmi;
reconnect_mgmt_console if is_pvm;
if (is_s390x && is_svirt) {
assert_shutdown_and_restore_system;
reconnect_mgmt_console;
}
wait_still_screen 10;
save_screenshot;
return;
Expand Down

0 comments on commit 239f484

Please sign in to comment.