From: Jouni Malinen Date: Wed, 7 Feb 2018 15:09:20 +0000 (+0200) Subject: tests: Make dpp_qr_code_curve_select more robust X-Git-Tag: hostap_2_7~582 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27a8d93b0701364209df47d9aaab0bd84583d87e;p=thirdparty%2Fhostap.git 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 --- 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()