Skip to content

Commit

Permalink
Fix leap to SLES15.2 gnome zypper_migration and snapper_rollback disp…
Browse files Browse the repository at this point in the history
…laymanager issue

In leap to SLES15.2 gnome zypper migration test, we need to skip the wait for display
manager step. because in leap it will boot directly into the generic desktop.
  • Loading branch information
hjluo committed Sep 28, 2020
1 parent 6d18922 commit 9b6c7b7
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);
}

1;

0 comments on commit 9b6c7b7

Please sign in to comment.