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 <quic_jouni@quicinc.com>
This commit is contained in:
parent
6f1041b3fb
commit
ecb1e04d85
1 changed files with 1 additions and 0 deletions
|
@ -2736,6 +2736,7 @@ def run_sigma_dut_dpp_pkex_responder(dev, apdev, v1=False):
|
||||||
t.start()
|
t.start()
|
||||||
dppbs = "PKEXv1" if v1 else "PKEX"
|
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)
|
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:
|
if "BootstrapResult,OK,AuthResult,OK,ConfResult,OK" not in res:
|
||||||
raise Exception("Unexpected result: " + res)
|
raise Exception("Unexpected result: " + res)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in a new issue