tests: Fix eap_proto_otp to use list of events with wait_event()
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
c4a9610e8f
commit
d371f0cbbf
1 changed files with 1 additions and 1 deletions
|
@ -1735,7 +1735,7 @@ def test_eap_proto_otp(dev, apdev):
|
||||||
raise Exception("Request for password timed out")
|
raise Exception("Request for password timed out")
|
||||||
id = ev.split(':')[0].split('-')[-1]
|
id = ev.split(':')[0].split('-')[-1]
|
||||||
dev[0].request("CTRL-RSP-OTP-" + id + ":password")
|
dev[0].request("CTRL-RSP-OTP-" + id + ":password")
|
||||||
ev = dev[0].wait_event("CTRL-EVENT-EAP-SUCCESS")
|
ev = dev[0].wait_event(["CTRL-EVENT-EAP-SUCCESS"])
|
||||||
if ev is None:
|
if ev is None:
|
||||||
raise Exception("Success not reported")
|
raise Exception("Success not reported")
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue