From 27a8d93b0701364209df47d9aaab0bd84583d87e Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 7 Feb 2018 17:09:20 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_dpp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 2ab213490..8608d063c 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -159,6 +159,12 @@ def test_dpp_qr_code_curve_select(dev, apdev): ev = dev[1].wait_event(["DPP-AUTH-SUCCESS"], timeout=5) if ev is None: 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[1].request("DPP_STOP_LISTEN") dev[0].dump_monitor()