Skip to content

Commit

Permalink
Merge pull request #11097 from hjluo/zypper_display
Browse files Browse the repository at this point in the history
Fix leap to SLES gnome migration waiting for display manager issue
  • Loading branch information
lemon-suse committed Sep 28, 2020
2 parents 4be9b74 + e868061 commit 3affbe6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions tests/boot/snapper_rollback.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,17 @@ use warnings;
use migration 'check_rollback_system';
use power_action_utils 'power_action';
use Utils::Backends 'is_pvm';
use version_utils;

sub run {
my ($self) = @_;

if (!check_screen 'linux-login', 200) {
assert_screen 'displaymanager', 90;
if (is_leap_migration && check_var('DESKTOP', 'gnome')) {
assert_screen 'generic-desktop', 90;
}
else {
if (!check_screen 'linux-login', 200) {
assert_screen 'displaymanager', 90;
}
}
select_console 'root-console';
# 1)
Expand Down
2 changes: 1 addition & 1 deletion tests/migration/online_migration/zypper_migration.pm
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ sub run {
# with other than the SAP Administrator
#
# sometimes reboot takes longer time after online migration, give more time
$self->wait_boot(textmode => !is_desktop_installed, bootloader_time => 300, ready_time => 600, nologin => (is_sles4sap || is_leap_migration));
$self->wait_boot(textmode => !is_desktop_installed, bootloader_time => 300, ready_time => 600, nologin => is_sles4sap);
}

sub post_fail_hook {
Expand Down

0 comments on commit 3affbe6

Please sign in to comment.