tests: Make dpp_qr_code_curve_select more robust

Wait for the configuration exchange to complete before issuing the
DPP_STOP_LISTEN command to avoid confusing sequence of operation between
the ongoing and immediately following DPP exchanges.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2018-02-07 17:09:20 +02:00 committed by Jouni Malinen
parent 4370ffc0c4
commit 27a8d93b07

View file

@ -159,6 +159,12 @@ def test_dpp_qr_code_curve_select(dev, apdev):
ev = dev[1].wait_event(["DPP-AUTH-SUCCESS"], timeout=5) ev = dev[1].wait_event(["DPP-AUTH-SUCCESS"], timeout=5)
if ev is None: if ev is None:
raise Exception("DPP authentication did not succeed (Initiator)") raise Exception("DPP authentication did not succeed (Initiator)")
ev = dev[0].wait_event(["DPP-CONF-FAILED"], timeout=2)
if ev is None:
raise Exception("DPP configuration result not seen (Enrollee)")
ev = dev[1].wait_event(["DPP-CONF-SENT"], timeout=2)
if ev is None:
raise Exception("DPP configuration result not seen (Responder)")
dev[0].request("DPP_STOP_LISTEN") dev[0].request("DPP_STOP_LISTEN")
dev[1].request("DPP_STOP_LISTEN") dev[1].request("DPP_STOP_LISTEN")
dev[0].dump_monitor() dev[0].dump_monitor()