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:
parent
14d28a655a
commit
adf6cfb0ab
1 changed files with 1 additions and 4 deletions
|
@ -107,10 +107,7 @@ def stop(host):
|
||||||
if host.thread is None:
|
if host.thread is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
host.execute(["killall", "-s", "INT", "tshark"])
|
host.execute_stop(host.thread)
|
||||||
host.wait_execute_complete(host.thread, 5)
|
|
||||||
if host.thread.isAlive():
|
|
||||||
raise Exception("tshark still alive")
|
|
||||||
host.thread = None
|
host.thread = None
|
||||||
|
|
||||||
# Add monitor to existing interface
|
# Add monitor to existing interface
|
||||||
|
|
Loading…
Reference in a new issue