]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Adjust eap_proto_pwd_errors to match implementation changes
authorJouni Malinen <j@w1.fi>
Mon, 28 May 2018 14:00:52 +0000 (17:00 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 28 May 2018 19:09:20 +0000 (22:09 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_eap_proto.py

index 2ff67430c53a7b72802085dd93fa7df8c0c8e0ed..d920b92062fc05cec61dd3c51e2b8c4347134266 100644 (file)
@@ -6302,7 +6302,7 @@ def test_eap_proto_pwd_errors(dev, apdev):
             dev[0].request("REMOVE_NETWORK all")
             dev[0].wait_disconnected()
 
-    for i in range(1, 7):
+    for i in range(1, 5):
         with alloc_fail(dev[0], i, "eap_pwd_perform_id_exchange"):
             dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412",
                            eap="PWD", identity="pwd user",
@@ -6336,7 +6336,7 @@ def test_eap_proto_pwd_errors(dev, apdev):
         dev[0].request("REMOVE_NETWORK all")
         dev[0].wait_disconnected()
 
-    for i in range(1, 4):
+    for i in range(1, 9):
         with alloc_fail(dev[0], i, "eap_pwd_perform_commit_exchange"):
             dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412",
                            eap="PWD", identity="pwd user",
@@ -6406,7 +6406,7 @@ def test_eap_proto_pwd_errors(dev, apdev):
     dev[0].wait_disconnected()
 
     with fail_test(dev[0], 1,
-                   "hash_nt_password_hash;eap_pwd_perform_id_exchange"):
+                   "hash_nt_password_hash;eap_pwd_perform_commit_exchange"):
         dev[0].connect("eap-test", key_mgmt="WPA-EAP", scan_freq="2412",
                        eap="PWD", identity="pwd-hash",
                        password_hex="hash:e3718ece8ab74792cbbfffd316d2d19a",