[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:
gabekassel
2021-06-30 21:25:17 -07:00
committed by GitHub
parent 8967d62ead
commit 4c117b92de
+1 -1
View File
@@ -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