From: Jouni Malinen Date: Tue, 19 Jul 2022 20:27:10 +0000 (+0300) Subject: tests: Allow DPP_PKEX_REMOVE success in dpp_pkex_hostapd_errors X-Git-Tag: hostap_2_11~1829 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86ed5b72b866ffdbc257805cd2ca4b875087219;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_dpp.py b/tests/hwsim/test_dpp.py index 7e4c448e5..4f52e5c8f 100644 --- a/tests/hwsim/test_dpp.py +++ b/tests/hwsim/test_dpp.py @@ -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: