]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: remote: monitor use execute_stop()
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sat, 26 Sep 2020 11:26:55 +0000 (13:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 9 Oct 2020 08:17:11 +0000 (11:17 +0300)
Stop the single thread instead of killing all monitor apps.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
tests/remote/monitor.py

index 47b5e3bbd913d480bd66e74ffef2d24c9188c724..96dbc6564d909b8c8e30c1903ec7b81b5e7b1c23 100644 (file)
@@ -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