From 71bfb896a47092a736d09cf759bc321088f03352 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 8 Mar 2018 21:21:23 -0800 Subject: [PATCH] Wiggle the mouse during install Seems with the long period of not doing anything and possibly with very aggressive timeouts in Fedora 28, Workstation live wants to blank the screen while we're installing. Stop it. Signed-off-by: Adam Williamson --- tests/_do_install_and_reboot.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index ef96d160..4674398a 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -76,7 +76,17 @@ sub run { if (lc(get_var('VERSION')) eq "rawhide") { $timeout = 2400; } - assert_screen "anaconda_install_done", $timeout; + # workstation especially has an unfortunate habit of kicking in + # the screensaver during install... + my $interval = 60; + while ($timeout > 0) { + # move the mouse a bit + mouse_set 100, 100; + mouse_hide; + last if (check_screen "anaconda_install_done", $interval); + $timeout -= $interval; + } + assert_screen "anaconda_install_done"; # wait for transition to complete so we don't click in the sidebar wait_still_screen 3; # for the memory check test, we *don't* want to leave