From: Jouni Malinen Date: Tue, 19 Dec 2023 11:49:15 +0000 (+0200) Subject: tests: Wait for the dpp_init_enrollee_pkex thread to complete X-Git-Tag: hostap_2_11~610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecb1e04d85f11d91ac93edfb2357f2fd3b99b17f;p=thirdparty%2Fhostap.git tests: Wait for the dpp_init_enrollee_pkex thread to complete 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 --- diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index 2a5354e94..973a13f5f 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -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: