mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
tests: Detect invitation GO issues more quickly
This speeds up and clarifies error reporting for cases where the GO fails to start in invitation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
685ea2f60c
commit
6e9554e307
@ -118,9 +118,12 @@ def invite(inv, resp, extra=None, persistent_reconnect=True):
|
|||||||
inv.global_request(cmd)
|
inv.global_request(cmd)
|
||||||
|
|
||||||
def check_result(go, cli):
|
def check_result(go, cli):
|
||||||
ev = go.wait_global_event(["P2P-GROUP-STARTED"], timeout=30)
|
ev = go.wait_global_event(["P2P-GROUP-STARTED",
|
||||||
|
"Failed to start AP functionality"], timeout=30)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Timeout on group re-invocation (on GO)")
|
raise Exception("Timeout on group re-invocation (on GO)")
|
||||||
|
if "P2P-GROUP-STARTED" not in ev:
|
||||||
|
raise Exception("GO failed to start the group for re-invocation")
|
||||||
if "[PERSISTENT]" not in ev:
|
if "[PERSISTENT]" not in ev:
|
||||||
raise Exception("Re-invoked group not marked persistent")
|
raise Exception("Re-invoked group not marked persistent")
|
||||||
go_res = go.group_form_result(ev)
|
go_res = go.group_form_result(ev)
|
||||||
|
Loading…
Reference in New Issue
Block a user