tests: remote: monitor use execute_stop()

Stop the single thread instead of killing all monitor apps.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
This commit is contained in:
Janusz Dziedzic 2020-09-26 13:26:55 +02:00 committed by Jouni Malinen
parent 14d28a655a
commit adf6cfb0ab
1 changed files with 1 additions and 4 deletions

View 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