]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: RELOAD_WPA_PSK failure
authorJouni Malinen <j@w1.fi>
Sat, 6 Mar 2021 10:10:29 +0000 (12:10 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 6 Mar 2021 11:17:55 +0000 (13:17 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_psk.py

index 7b623af1740589bdbe5e4299a96a05cc0c3a38d2..be6a88b2a1645e4dcf626e3e55047e325d14e8c4 100644 (file)
@@ -168,6 +168,11 @@ def test_ap_wpa2_psk_file_keyid(dev, apdev, params):
 
     check_disconnect(dev, [True, True, False])
 
+    with open(psk_file, 'w') as f:
+        f.write('broken\n')
+    if "FAIL" not in hapd.request("RELOAD_WPA_PSK"):
+        raise Exception("RELOAD_WPA_PSK succeeded with invalid file")
+
 @remote_compatible
 def test_ap_wpa2_psk_mem(dev, apdev):
     """WPA2-PSK AP with passphrase only in memory"""