From 697c9d3ef6cd565bf3da9d4a40825dab401b211f Mon Sep 17 00:00:00 2001 From: Trevor Cooper Date: Wed, 27 Oct 2021 09:00:46 -0700 Subject: [PATCH] do not expect VNC vs Text Mode menu during text install --- tests/_boot_to_anaconda.pm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index 5d752c2f..778dd9fe 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -104,10 +104,19 @@ sub run { unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; } } else { - assert_screen "anaconda_use_text_mode", 300; - type_string "2\n"; - # wait for text version of Anaconda main hub - assert_screen "anaconda_main_hub_text", 300; + if (get_var("DISTRI") eq "rocky") { + # Rocky doesn't have network enabled at boot so we are not prompted + # for VNC... + # wait for text version of Anaconda main hub + assert_screen "anaconda_main_hub_text", 300; + } + else { + # Fedora has a use text mode menu here + assert_screen "anaconda_use_text_mode", 300; + type_string "2\n"; + # wait for text version of Anaconda main hub + assert_screen "anaconda_main_hub_text", 300; + } } } else {