1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Try launching live installer up to 5 times (#2280840)

We already try twice, but that seems to be not enough for the
annoying #2280840, we're often seeing failures.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-06-03 17:22:39 -07:00
parent d8ddcc2791
commit e353649ed8

View File

@ -170,11 +170,14 @@ sub run {
my $relnum = get_release_number; my $relnum = get_release_number;
my $dclick = 0; my $dclick = 0;
$dclick = 1 if (get_var("DESKTOP") eq "kde"); $dclick = 1 if (get_var("DESKTOP") eq "kde");
assert_and_click("live_start_anaconda_icon", dclick => $dclick); # FIXME launching the installer sometimes fails on KDE
unless (check_screen "anaconda_select_install_lang", 180) { # https://bugzilla.redhat.com/show_bug.cgi?id=2280840
# click it again - on KDE since 2019-10 or so it seems my $tries = 5;
# like the first attempt sometimes just doesn't work while ($tries) {
assert_and_click("live_start_anaconda_icon", dclick => $dclick, timeout => 300); $tries -= 1;
assert_and_click("live_start_anaconda_icon", dclick => $dclick);
last unless (check_screen "anaconda_select_install_lang", 180);
die "Launching installer failed after 5 tries!" unless ($tries);
} }
} }
} }