[PATCH 4/9] tests: remote: monitor use execute_stop()

Janusz Dziedzic janusz.dziedzic at gmail.com
Sat Sep 26 07:26:55 EDT 2020


Stop single thread instead of kill
all monitor apps.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic at gmail.com>
---
 tests/remote/monitor.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/remote/monitor.py b/tests/remote/monitor.py
index 47b5e3bbd..96dbc6564 100644
--- a/tests/remote/monitor.py
+++ b/tests/remote/monitor.py
@@ -107,10 +107,7 @@ def stop(host):
     if host.thread is None:
         return
 
-    host.execute(["killall", "-s", "INT", "tshark"])
-    host.wait_execute_complete(host.thread, 5)
-    if host.thread.isAlive():
-       raise Exception("tshark still alive")
+    host.execute_stop(host.thread)
     host.thread = None
 
 # Add monitor to existing interface
-- 
2.17.1




More information about the Hostap mailing list