From 8f8563ff134c78ec4d60d53fceee128c90fe21ad Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 5 Dec 2019 10:48:15 -0800 Subject: [PATCH] Try a different way to fix KDE live anaconda launch issues Lately launching anaconda on the KDE live image seems pretty unreliable and we're not sure why. My last attempt to fix it doesn't seem to be working, here's another effort based on the idea it might be caused by moving the mouse from the hidden position to the icon and back again, let's try moving the mouse close to the icon before we assert and click it... Signed-off-by: Adam Williamson --- tests/_boot_to_anaconda.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index 07e2c628..f14bf3f3 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -113,11 +113,9 @@ sub run { else { # on lives, we have to explicitly launch anaconda if (get_var('LIVE')) { - assert_screen "live_start_anaconda_icon", 300; - # seems that clicking as soon as we see it sometimes - # fails on KDE, so wait a bit then click it - sleep 5; - click_lastmatch; + # try and avoid click errors on KDE... + mouse_set(10, 10) if (get_var("DESKTOP") eq "kde"); + _assert_and_click("live_start_anaconda_icon", timeout=>300); } my $language = get_var('LANGUAGE') || 'english'; # wait for anaconda to appear; we click to work around