[PATCH 14/18] tests: Issue TEST-START NOTE to extra wpa_suplicant instances

Benjamin Berg benjamin at sipsolutions.net
Thu Oct 30 01:24:45 PDT 2025


From: Benjamin Berg <benjamin.berg at intel.com>

The wlan5 and wlan6 instances are separate as they only have interfaces
in some tests. Also issue TEST-START notes for them.

Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
---
 tests/hwsim/run-tests.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index 06c76be05a..4024a19a5a 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -573,6 +573,15 @@ def main():
                     if args.stdin_ctrl:
                         set_term_echo(sys.stdin.fileno(), True)
                     sys.exit(1)
+            for ifname in ['/tmp/wpas-wlan5', '/tmp/wpas-wlan6']:
+                wpas = None
+                try:
+                    wpas = WpaSupplicant(global_iface=ifname, monitor=False)
+                    wpas.global_request("NOTE TEST-START " + name)
+                    del wpas
+                except:
+                    logger.exception("Failed to issue TEST-START before " + name + " for " + ifname)
+                    print("FAIL " + name + " - could not start test")
             try:
                 hapd = HostapdGlobal()
                 hapd.request("NOTE TEST-START " + name)
-- 
2.51.0




More information about the Hostap mailing list