aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-08-23 12:55:46 (GMT)
committerJouni Malinen <j@w1.fi>2017-08-23 12:55:46 (GMT)
commitb62c948a26b6bfa1bd4c97060365a9cd6f69f4ed (patch)
tree8ffbf3600a8000769b29af7d679a37fc949e2313 /tests
parent85fd8263a51081350de9c7529aa6a58948dcb70c (diff)
downloadhostap-b62c948a26b6bfa1bd4c97060365a9cd6f69f4ed.zip
hostap-b62c948a26b6bfa1bd4c97060365a9cd6f69f4ed.tar.gz
hostap-b62c948a26b6bfa1bd4c97060365a9cd6f69f4ed.tar.bz2
tests: Make dpp_qr_code_auth_initiator_enrollee more robust
Wait for the configuration step to complete before forcefully terminating DPP listen. Previous version was causing failures for this test case sequence: dpp_qr_code_auth_initiator_enrollee dpp_pkex_config2 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_dpp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py
index 3af8a64..ede2146 100644
--- a/tests/hwsim/test_dpp.py
+++ b/tests/hwsim/test_dpp.py
@@ -406,6 +406,14 @@ def test_dpp_qr_code_auth_initiator_enrollee(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-SENT"], timeout=5)
+ if ev is None:
+ raise Exception("DPP configuration did not succeed (Configurator)")
+ ev = dev[1].wait_event(["DPP-CONF-FAILED"], timeout=5)
+ if ev is None:
+ raise Exception("DPP configuration did not succeed (Enrollee)")
+
dev[0].request("DPP_STOP_LISTEN")
def test_dpp_qr_code_auth_incompatible_roles(dev, apdev):