diff mbox series

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

Message ID 20200926112700.6055-4-janusz.dziedzic@gmail.com
State Accepted
Headers show
Series [1/9] tests: remote: sort tests correctly | expand

Commit Message

Janusz Dziedzic Sept. 26, 2020, 11:26 a.m. UTC
Stop single thread instead of kill
all monitor apps.

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

Patch

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