]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wait for the dpp_init_enrollee_pkex thread to complete
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 19 Dec 2023 11:49:15 +0000 (13:49 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 19 Dec 2023 11:49:15 +0000 (13:49 +0200)
One of the sigma_dut testing cases missed the t.join() call to make
surte the separate thread terminated. This could result in confusing
"unexpected stdout output" in a middle of an unrelated test case.

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

index 2a5354e949c26347ae37254ebac34acc4b3566bc..973a13f5f8cd46ccfd0727a84d7929ea7dabf63f 100644 (file)
@@ -2736,6 +2736,7 @@ def run_sigma_dut_dpp_pkex_responder(dev, apdev, v1=False):
         t.start()
         dppbs = "PKEXv1" if v1 else "PKEX"
         res = sigma_dut_cmd("dev_exec_action,program,DPP,DPPActionType,AutomaticDPP,DPPAuthRole,Responder,DPPProvisioningRole,Configurator,DPPConfIndex,1,DPPSigningKeyECC,P-256,DPPConfEnrolleeRole,STA,DPPBS,%s,DPPPKEXCodeIdentifier,test,DPPPKEXCode,secret,DPPTimeout,16" % dppbs, timeout=20)
+        t.join()
         if "BootstrapResult,OK,AuthResult,OK,ConfResult,OK" not in res:
             raise Exception("Unexpected result: " + res)
     finally: