tests: Make DPP protocol failure testing more robust
Wait explicitly for the DPP-NOT-COMPATIBLE event when going through protocol testing with local failures instead of just waiting for a fixed 0.1 second duration. This prevents a test failure at least in dppauth_resp_status_failure in a case where the failing operation may be delayed under heavy CPU load. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
8b944cf779
commit
3d5cfa0f6d
1 changed files with 4 additions and 0 deletions
|
@ -3632,6 +3632,10 @@ def run_dpp_proto_auth_resp_missing(dev, test, reason,
|
|||
run_dpp_proto_init(dev, 0, test, mutual=True,
|
||||
incompatible_roles=incompatible_roles)
|
||||
if reason is None:
|
||||
if incompatible_roles:
|
||||
ev = dev[0].wait_event(["DPP-NOT-COMPATIBLE"], timeout=5)
|
||||
if ev is None:
|
||||
raise Exception("DPP-NOT-COMPATIBLE not reported")
|
||||
time.sleep(0.1)
|
||||
return
|
||||
ev = dev[1].wait_event(["DPP-FAIL"], timeout=5)
|
||||
|
|
Loading…
Reference in a new issue