tests: Allow DPP_PKEX_REMOVE success in dpp_pkex_hostapd_errors

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>
This commit is contained in:
Jouni Malinen 2022-07-19 23:27:10 +03:00 committed by Jouni Malinen
parent 0a4f391b1c
commit d86ed5b72b

View 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: