Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Fix sporadic issue with reboot_gnome on aarch64 (Tumbleweed) #12396

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 23 additions & 3 deletions lib/power_action_utils.pm
Expand Up @@ -83,9 +83,29 @@ sub reboot_x11 {
if (check_var('DESKTOP', 'gnome')) {
if (is_tumbleweed) {
assert_and_click('reboot-power-icon');
assert_and_click('reboot-power-menu');
assert_and_click('reboot-click-restart');
} else {
# re-try if 'reboot-power-menu' is not coming up, we have sporadic issue with DVD installation on aarch64, see poo#88948
assert_screen [qw(reboot-power-menu reboot-power-icon)];
if (match_has_tag 'reboot-power-menu') {
assert_and_click('reboot-power-menu');
assert_and_click('reboot-click-restart');
}
else {
record_info 'worker performance is low! try to reboot again.';
# in case that reboot-power-menu doesn't come up
assert_screen [qw(reboot-power-menu generic-desktop)];
if (match_has_tag 'reboot-power-menu') {
assert_and_click('reboot-power-menu', 60);
save_screenshot;
assert_and_click('reboot-click-restart'); # in case that reboot-power-menu is there, but reboot-click-restart is not successful
}
else {
assert_and_click_until_screen_change('reboot-power-icon', 5, 30); # in case that reboot-power-menu is not coming up at all
assert_and_click_until_screen_change('reboot-power-menu', 5, 30);
assert_and_click('reboot-click-restart');
}
}
}
else {
send_key_until_needlematch 'logoutdialog', 'ctrl-alt-delete', 7, 10; # reboot
}
my $repetitions = assert_and_click_until_screen_change 'logoutdialog-reboot-highlighted';
Expand Down