]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Fix eap_proto_otp to use list of events with wait_event()
authorJouni Malinen <jouni@codeaurora.org>
Wed, 7 Aug 2019 09:44:50 +0000 (12:44 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Aug 2019 09:57:22 +0000 (12:57 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_eap_proto.py

index ddcaa3b01bdcfb858c042554ffef8c1ec1d7a6cb..ece527aba155488b1f30104b0dbb5169762742b3 100644 (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: