]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Wait before initiating DPP from thread in sigma_dut testing
authorJouni Malinen <j@w1.fi>
Sat, 4 Nov 2023 10:41:02 +0000 (12:41 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 4 Nov 2023 10:41:02 +0000 (12:41 +0200)
Starting a thread to initiate DPP before starting the responder through
sigma_dut can result in unexpected testing behavior since there may not
be enough time to get the responder enabled before timing out som
initiator actions. Wait a second at the beginning of the initiator
thread in dpp_init_conf() similarly to how this was handled in other
initiator-from-thread cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_sigma_dut.py

index e36e7923a8527d5a0f0e2537f33d69f0ca82f61c..a981295b1fc7151b562cf1739ac2293dfec268c2 100644 (file)
@@ -2726,6 +2726,7 @@ def run_sigma_dut_dpp_pkex_responder(dev, apdev, v1=False):
         stop_sigma_dut(sigma)
 
 def dpp_init_conf(dev, id1, conf, conf_id, extra):
+    time.sleep(1)
     logger.info("Starting DPP initiator/configurator in a thread")
     cmd = "DPP_AUTH_INIT peer=%d conf=%s %s configurator=%d" % (id1, conf, extra, conf_id)
     if "OK" not in dev.request(cmd):