1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +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 # we direct the installer to virtio-console1, and use
# virtio-console as a root console # virtio-console as a root console
select_console('user-virtio-console'); select_console('user-virtio-console');
unless (wait_serial "Use text mode", timeout => 120) { die "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"; type_string "2\n";
unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; } die "Text version of Anaconda has not started." unless (wait_serial "Installation");
}
} }
else { else {
assert_screen ["anaconda_use_text_mode", "anaconda_main_hub_text"], 300; assert_screen ["anaconda_use_text_mode", "anaconda_main_hub_text"], 300;