Skip to content

Commit 390f6f5

Browse files
committed
platform-configs: Use max_insertions and max_deletions in fuzzy telnet
Signed-off-by: Filip Gołaś <[email protected]>
1 parent a67ef90 commit 390f6f5

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

lib/terminal.robot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,16 @@ Read From Terminal Until
127127
[Arguments] ${expected}
128128
IF '${DUT_CONNECTION_METHOD}' == 'Telnet'
129129
${output}= Telnet.Read Until Fuzzy ${expected} max_errors=${TELNET_FUZZY_MAX_ERRORS}
130+
... max_insertions=${TELNET_FUZZY_MAX_INSERTIONS}
131+
... max_deletions=${TELNET_FUZZY_MAX_DELETIONS}
130132
ELSE IF '${DUT_CONNECTION_METHOD}' == 'SSH'
131133
${output}= SSHLibrary.Read Until ${expected}
132134
ELSE IF '${DUT_CONNECTION_METHOD}' == 'open-bmc'
133135
${output}= SSHLibrary.Read Until ${expected}
134136
ELSE IF '${DUT_CONNECTION_METHOD}' == 'pikvm'
135137
${output}= Telnet.Read Until Fuzzy ${expected} max_errors=${TELNET_FUZZY_MAX_ERRORS}
138+
... max_insertions=${TELNET_FUZZY_MAX_INSERTIONS}
139+
... max_deletions=${TELNET_FUZZY_MAX_DELETIONS}
136140
ELSE
137141
${output}= FAIL Unknown connection method: ${DUT_CONNECTION_METHOD}
138142
END

platform-configs/include/default.robot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ${TBD}=
99
${INITIAL_DUT_CONNECTION_METHOD}= ${TBD}
1010
${DUT_CONNECTION_METHOD}= ${TBD}
1111
${TELNET_FUZZY_MAX_ERRORS}= 0
12+
${TELNET_FUZZY_MAX_INSERTIONS}= 0
13+
${TELNET_FUZZY_MAX_DELETIONS}= 0
1214
${PAYLOAD}= tianocore
1315
${RTE_S2_N_PORT}= 13541
1416
${FLASH_SIZE}= ${TBD}

platform-configs/include/novacustom-common.robot

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ ${MAX_CPU_TEMP}= 82
2525
${AUTO_BOOT_TIME_OUT_DEFAULT_VALUE}= 6
2626
${FLASHING_METHOD}= internal
2727
${CHECK_POWER_LED_SUPPORT}= ${FALSE}
28+
${TELNET_FUZZY_MAX_ERRORS}= 5
29+
${TELNET_FUZZY_MAX_INSERTIONS}= 5
30+
${TELNET_FUZZY_MAX_DELETIONS}= 1
2831

2932
${DMIDECODE_SERIAL_NUMBER}= N/A
3033
${DMIDECODE_MANUFACTURER}= Notebook

platform-configs/novacustom-v540tu.robot

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ ${INITIAL_DUT_CONNECTION_METHOD}= Telnet
88
${DUT_CONNECTION_METHOD}= Telnet
99
${POWER_CTRL}= sonoff
1010
${TESTS_IN_FIRMWARE_SUPPORT}= ${TRUE}
11-
${TELNET_FUZZY_MAX_ERRORS}= 0
1211
# CPU
1312
${CPU}=
1413
... Intel(R) Core(TM) Ultra 7 155H

0 commit comments

Comments
 (0)