From 3213bb9043f86ede0173cab965d8853b61626fe9 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Sat, 18 Feb 2023 11:47:07 -0800 Subject: [PATCH] desktop_login: give logout longer, but soft fail Logout seems to be taking a long time in Rawhide currently. Give it longer to run, but soft fail. I'll add a bug link once I've investigated and filed one. Signed-off-by: Adam Williamson --- tests/desktop_login.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/desktop_login.pm b/tests/desktop_login.pm index a047f2a6..68de6a11 100644 --- a/tests/desktop_login.pm +++ b/tests/desktop_login.pm @@ -70,7 +70,13 @@ sub login_user { } if ($method ne "unlock") { # When we do not just want to unlock the screen, we need to select a user. - assert_and_click "login_$user"; + if (check_screen "login_$user", 30) { + click_lastmatch; + } + else { + record_soft_failure "logout seems to be taking too long"; + assert_and_click "login_$user"; + } wait_still_screen(stilltime => 5, similarity_level => 45); } if ($method eq "create") {