From b1e975a21f3aba6084c1f03bd0cd1fa6455b817a Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 16 May 2023 15:40:02 -0700 Subject: [PATCH] anaconda: end install immediately if we see the error screen If install errors out, currently we still wait like an hour for an "install_done" screen that will never come, before we give up. Since we have a needle for the "unknown error has occurred" screen, we may as well use it here - if we see that screen, we can just die immediately. This may go stale if we forget to update the needle, but it's only one line, so meh. Signed-off-by: Adam Williamson --- tests/_do_install_and_reboot.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index c45cf7f8..e20c9577 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -90,6 +90,7 @@ sub run { # the screensaver during install... my $interval = 60; while ($timeout > 0) { + die "Error encountered!" if (check_screen "anaconda_error_report"); # move the mouse a bit mouse_set 100, 100; # also click, if we're a VNC client, seems just moving mouse