From: Janusz Dziedzic Date: Sat, 26 Sep 2020 11:26:55 +0000 (+0200) Subject: tests: remote: monitor use execute_stop() X-Git-Tag: hostap_2_10~922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adf6cfb0ab6f33de504dead51004afa3baf5493a;p=thirdparty%2Fhostap.git tests: remote: monitor use execute_stop() Stop the single thread instead of killing all monitor apps. Signed-off-by: Janusz Dziedzic --- 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