From 004f618613a2c3fa1a2729b4cf1b26c7685a4388 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 4 Nov 2023 12:41:02 +0200 Subject: [PATCH] tests: Wait before initiating DPP from thread in sigma_dut testing 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 --- tests/hwsim/test_sigma_dut.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_sigma_dut.py b/tests/hwsim/test_sigma_dut.py index e36e7923a..a981295b1 100644 --- a/tests/hwsim/test_sigma_dut.py +++ b/tests/hwsim/test_sigma_dut.py @@ -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):