]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: sigma_dut and updated ConfResult value for Configurator failures
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 29 Jul 2022 15:56:49 +0000 (18:56 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 29 Jul 2022 15:56:49 +0000 (18:56 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_sigma_dut.py

index 040aef26587685f5852c1b489f282d36a7a964d2..272a49bd6a69f80513915074cfcdf5eef4f0f0b4 100644 (file)
@@ -2194,6 +2194,8 @@ def test_sigma_dut_dpp_enrollee_does_not_support_signing_curve(dev, apdev):
         res = sigma_dut_cmd(cmd, timeout=10)
         if "status,COMPLETE" not in res:
             raise Exception("dev_exec_action did not succeed: " + res)
+        if "BootstrapResult,OK,AuthResult,OK,ConfResult,FAILED" not in res:
+            raise Exception("Unexpected result: " + res)
         ev = dev[1].wait_event(["DPP-CONF-RECEIVED", "DPP-CONF-FAILED"],
                                timeout=20)
         if not ev:
@@ -3779,7 +3781,7 @@ def test_sigma_dut_dpp_tcp_configurator_init_mutual_unsupported_curve(dev, apdev
 
         cmd = "dev_exec_action,program,DPP,DPPActionType,AutomaticDPP,DPPAuthRole,Initiator,DPPAuthDirection,Mutual,DPPProvisioningRole,Configurator,DPPConfIndex,1,DPPNAKECC,P-521,DPPConfEnrolleeRole,STA,DPPBS,QR,DPPOverTCP,127.0.0.1,DPPTimeout,6"
         res = sigma_dut_cmd(cmd, timeout=10)
-        if "BootstrapResult,OK,AuthResult,OK,ConfResult,OK" not in res:
+        if "BootstrapResult,OK,AuthResult,OK,ConfResult,FAILED" not in res:
             raise Exception("Unexpected result: " + res)
         ev = dev[1].wait_event(["DPP-FAIL"], timeout=20)
         if not ev: