1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-30 17:47:23 +00:00

Handle VNC question disappearing in serial mode too

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-06-21 09:40:17 -07:00
parent 8028586183
commit c68c215489

View File

@ -127,9 +127,12 @@ sub run {
# we direct the installer to virtio-console1, and use
# virtio-console as a root console
select_console('user-virtio-console');
unless (wait_serial "Use text mode", timeout => 120) { die "Anaconda has not started."; }
type_string "2\n";
unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; }
my $match = wait_serial ["Use text mode", "Installation"], timeout => 120;
die "Anaconda has not started." unless ($match);
if ($match =~ m/Use text mode/) {
type_string "2\n";
die "Text version of Anaconda has not started." unless (wait_serial "Installation");
}
}
else {
assert_screen ["anaconda_use_text_mode", "anaconda_main_hub_text"], 300;