From: Jouni Malinen Date: Sat, 27 Feb 2021 19:07:54 +0000 (+0200) Subject: tests: Fix sigma_dut_ap_dpp_tcp_enrollee_init to stop hostapd X-Git-Tag: hostap_2_10~510 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea3561c6c50e43b89e8ae637f4fabe2c35db67c;p=thirdparty%2Fhostap.git tests: Fix sigma_dut_ap_dpp_tcp_enrollee_init to stop hostapd This test case was missing an explicit CAPI ap_reset_default and that could result in hostapd being left running at the end of the test case. This could result in issues with following test cases if they used a new radio interface from HWSimRadio(). Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 8bf06e078..c1b4c86d8 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -3114,6 +3114,7 @@ def run_sigma_dut_ap_dpp_tcp_enrollee_init(dev, apdev): res = sigma_dut_cmd(cmd, timeout=10) if "BootstrapResult,OK,AuthResult,OK,ConfResult,OK" not in res: raise Exception("Unexpected result: " + res) + sigma_dut_cmd_check("ap_reset_default") def test_sigma_dut_dpp_tcp_enrollee_init_mutual(dev, apdev): """sigma_dut DPP TCP Enrollee as initiator with mutual authentication"""