Skip to content

Commit f42fe56

Browse files
committed
Set Option State: workaround for fuzzysearch
Signed-off-by: Filip Gołaś <[email protected]>
1 parent c1fcbf0 commit f42fe56

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/bios/menus.robot

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,16 @@ Set Option State
866866
Press Key N Times 1 ${ARROW_UP}
867867
END
868868

869-
${out}= Read From Terminal Until ---/
869+
# workaround, if fuzzysearch allows for even one deletion, `---/` will match to `---`
870+
# and stop reading once either top or bottom border of the frame is found.
871+
# There is no other more characteristic string to look for.
872+
# Sleep to make sure the whole frame is drawn before trying to read it.
873+
IF ${TELNET_FUZZY_MAX_ERRORS}+${TELNET_FUZZY_MAX_DELETIONS} > 0
874+
Sleep 1s
875+
${out}= Read From Terminal
876+
ELSE
877+
${out}= Read From Terminal Until ---/
878+
END
870879
${list}= Extract Strings From Frame ${out}
871880
# TODO: Temporarily disabled due to the complexity with
872881
# options spanning into multiple lines.

0 commit comments

Comments
 (0)