]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Issue TEST-START NOTE to extra wpa_suplicant instances
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 30 Oct 2025 08:24:45 +0000 (09:24 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 13 Dec 2025 20:20:11 +0000 (22:20 +0200)
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@intel.com>
tests/hwsim/run-tests.py

index 06c76be05a8065989916587909c7896e90991773..bb6fbf520334a6d31ac09acfacbb02a3c7556a46 100755 (executable)
@@ -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']:
+                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)