Skip to content

Commit

Permalink
virt_autotest: add ppc64le image to osd SL Micro6 Virt
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxuguang committed Aug 28, 2024
1 parent 3b8c18d commit c12b037
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/opensusebasetest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ sub wait_grub {
&& !is_jeos
&& !$in_grub
&& (!(isotovideo::get_version() >= 12 && get_var('UEFI_PFLASH_VARS')) || get_var('ONLINE_MIGRATION') || get_var('UPGRADE') || get_var('ZDUP') || (get_var('LIVE_UPGRADE') && get_var('PATCH_BEFORE_MIGRATION'))));
assert_screen(\@tags, $bootloader_time);
assert_screen(\@tags, $bootloader_time) unless is_ppc64le;
if (match_has_tag("bootloader-shim-import-prompt")) {
send_key "down";
send_key "ret";
Expand Down Expand Up @@ -651,7 +651,7 @@ sub grub_select {
push @tags, 'linux-login' if check_var('DESKTOP', 'textmode');
push @tags, 'displaymanager' if check_var('DESKTOP', 'gnome');

assert_screen(\@tags);
assert_screen(\@tags, timeout => 1000);

if (match_has_tag 'grub2') {
send_key 'ret';
Expand Down
2 changes: 1 addition & 1 deletion lib/transactional.pm
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ sub process_reboot {
assert_screen 'grub2', 150;
wait_screen_change { send_key 'ret' };
}
assert_screen 'linux-login', 200;
assert_screen 'linux-login', 500;

# Login & clear login needle
select_console 'root-console';
Expand Down
12 changes: 12 additions & 0 deletions schedule/virt_autotest/slem_virt_ppc64le.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: slem_virtualization
description: >
Maintainer: [email protected], [email protected]
SLE Micro as virtualization host. It runs qemu as emulator and qemu using kvm. It uses default raw image.
schedule:
- microos/disk_boot
- transactional/host_config
- console/suseconnect_scc
- qemu/info
- qemu/qemu
- console/journal_check
- shutdown/shutdown
2 changes: 1 addition & 1 deletion tests/shutdown/shutdown.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use utils;
sub run {
my $self = shift;
select_console('root-console');
systemctl 'list-timers --all';
systemctl('list-timers --all', timeout => 500);
power_action('poweroff');
}

Expand Down
3 changes: 3 additions & 0 deletions tests/transactional/host_config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use transactional qw(process_reboot);
use bootloader_setup qw(change_grub_config);
use utils qw(ensure_ca_certificates_suse_installed zypper_call);
use version_utils qw(is_bootloader_grub2 is_bootloader_sdboot);
use serial_terminal 'prepare_serial_console';

sub run {
select_console 'root-console';
Expand All @@ -41,6 +42,8 @@ sub run {
}

record_info('REPOS', script_output('zypper lr --url', proceed_on_failure => 1));

prepare_serial_console;
}

sub test_flags {
Expand Down

0 comments on commit c12b037

Please sign in to comment.