mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[otci] fix OTCI.wait arg order (#6777)
In wait, match_line is called with the arguments flipped. The first argument is supposed to the be the line being checked, and the second is supposed to be the pattern to match. The reason this still works for strings is because output is treated as a list of lines to expect, and each is just compared with == to the actual expected line
This commit is contained in:
@@ -75,7 +75,7 @@ class OTCI(object):
|
||||
|
||||
while duration > 0:
|
||||
output = self.__otcmd.wait(1)
|
||||
if match_line(expect_line, output):
|
||||
if any(match_line(line, expect_line) for line in output):
|
||||
success = True
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user