File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,8 @@ function run_agent_test_cases() {
291291
292292 echo " Fixing DNS through agent-tui"
293293 # call script to fix DNS IP address on master-0
294- ./agent/e2e/agent-tui/test-fix-wrong-dns.sh $CLUSTER_NAME $PROVISIONING_HOST_EXTERNAL_IP
294+ local version=" $( openshift_version ${OCP_DIR} ) "
295+ ./agent/e2e/agent-tui/test-fix-wrong-dns.sh $CLUSTER_NAME $PROVISIONING_HOST_EXTERNAL_IP $version
295296
296297 echo " Finished fixing DNS through agent-tui"
297298 fi
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ source common.sh
4+ set +x
5+
36CLUSTER_NAME=$1
47GOOD_DNS_IP=$2
8+ OCP_VERSION=$3
59
610# ## utils function for sending various keys and/or text to the console
711
@@ -124,7 +128,15 @@ pressEnter "Reactivate 'enp2s0'"
124128sleep 3
125129pressTab " Goto <Back> button" 2
126130pressEnter " Select '<Back>' button'"
127- pressDown " Select Quit" 2
131+
132+ # Since ocp 4.16, the nmtui has an additional menu entry "Radio" in the main panel
133+ # so it's necessary an additional step
134+ numStepsToQuit=2
135+ if ! is_lower_version " ${OCP_VERSION} " " 4.16" ; then
136+ numStepsToQuit=3
137+ fi
138+ pressDown " Select Quit" ${numStepsToQuit}
139+
128140pressEnter " Select 'Quit' menu item"
129141pressEsc " Esc from network tree view"
130142pressTab " Goto <Quit> button to exit agent-tui" 1
You can’t perform that action at this time.
0 commit comments