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:
Jouni Malinen 2019-08-07 12:44:50 +03:00 committed by Jouni Malinen
parent c4a9610e8f
commit d371f0cbbf

View file

@ -1735,7 +1735,7 @@ def test_eap_proto_otp(dev, apdev):
raise Exception("Request for password timed out")
id = ev.split(':')[0].split('-')[-1]
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:
raise Exception("Success not reported")
finally: