[PATCH 13/18] tests: Issue TEST-START NOTE to hostapd instance

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


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

This is useful as the note will be used for context in memory leak
information.

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

diff --git a/tests/hwsim/run-tests.py b/tests/hwsim/run-tests.py
index eafec24797..06c76be05a 100755
--- a/tests/hwsim/run-tests.py
+++ b/tests/hwsim/run-tests.py
@@ -573,6 +573,13 @@ def main():
                     if args.stdin_ctrl:
                         set_term_echo(sys.stdin.fileno(), True)
                     sys.exit(1)
+            try:
+                hapd = HostapdGlobal()
+                hapd.request("NOTE TEST-START " + name)
+                del hapd
+            except Exception as e:
+                logger.exception("Failed to issue TEST-START before " + name + " for hostapd")
+                print("FAIL " + name + " - could not start test")
             skip_reason = None
             try:
                 if is_long_duration_test(t) and not args.long:
-- 
2.51.0




More information about the Hostap mailing list