]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Allow DPP_PKEX_REMOVE success in dpp_pkex_hostapd_errors
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 19 Jul 2022 20:27:10 +0000 (23:27 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 19 Jul 2022 20:28:33 +0000 (23:28 +0300)
This is in preparation to allow the implementation in hostapd to be
changed to accept removal of PKEX information without indicating an
error after it have been automatically removed at the successful
completion of PKEX.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_dpp.py

index 7e4c448e5243e4183f4dbe0c733514a9eb2ca7ce..4f52e5c8ff0f9d2be5f20d3d1417eb0cc1992cd6 100644 (file)
@@ -2747,8 +2747,7 @@ def test_dpp_pkex_hostapd_errors(dev, apdev):
         raise Exception("Failed to add PKEX responder")
     if "OK" not in hapd.request("DPP_PKEX_REMOVE " + res):
         raise Exception("Failed to remove PKEX responder")
-    if "FAIL" not in hapd.request("DPP_PKEX_REMOVE " + res):
-        raise Exception("Unknown PKEX responder removal accepted")
+    hapd.request("DPP_PKEX_REMOVE " + res)
 
     res = hapd.request("DPP_PKEX_ADD own=%d code=foo" % id0)
     if "FAIL" in res: