tests: Fix sigma_dut interaction with multiple status lines

It is possible for the sigma_dut process to be scheduled in a manner
that ends up combining the status,RUNNING and status,COMPLETE lines into
a single TCP message. This was supposed to be handled in the
sigma_dut_cmd() implementations, but that design had been broken by code
refactoring that changed the indentation level incorrectly.

Fixes: d68946d510 ("tests: sigma_dut and DPP push button first on Enrollee")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-11-02 15:54:29 +02:00 committed by Jouni Malinen
parent f851ac2b60
commit 4a28e0cb9c

View file

@ -96,9 +96,9 @@ def sigma_dut_cmd(cmd, port=9000, timeout=2, dump_dev=None):
done = True
res = line
break
if running and not done:
# Read the actual response
res = sock.recv(1000).decode()
if running and not done:
# Read the actual response
res = sock.recv(1000).decode()
except:
res = ''
pass