]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make sigma_dut_dpp_qr_mutual_resp_enrollee_connector_privacy more robust
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 4 Oct 2022 21:17:52 +0000 (00:17 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 4 Oct 2022 21:22:27 +0000 (00:22 +0300)
Clear the dpp_connector_privacy_default parameter value that sigma_dut
set in wpa_supplicant at the end of the test case to avoid surprising
behavior for the following test cases. This was found with a failure in
the following test sequence:
sigma_dut_dpp_qr_mutual_resp_enrollee_connector_privacy
sigma_dut_dpp_proto_peer_disc_req

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

index b04823a7dc798fab6791b016171559d537c954ed..b2c139d7753113832fa245d53b1f5ac1e63122cc 100644 (file)
@@ -1792,8 +1792,11 @@ def test_sigma_dut_dpp_qr_mutual_resp_enrollee_connector_privacy(dev, apdev):
     """sigma_dut DPP/QR (mutual) responder as Enrollee (Connector Privacy)"""
     check_dpp_capab(dev[0], min_ver=3)
     check_dpp_capab(dev[1], min_ver=3)
-    run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev,
-                                              ",DPPPrivNetIntro,Yes")
+    try:
+        run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev,
+                                                  ",DPPPrivNetIntro,Yes")
+    finally:
+        dev[0].set("dpp_connector_privacy_default", "0", allow_fail=True)
 
 def run_sigma_dut_dpp_qr_mutual_resp_enrollee(dev, apdev, extra=None):
     check_dpp_capab(dev[0])