Before, we could loose some events because of pipe buffering. I saw this problem when run "ubus listen" or "logread -f" waiting some specific events. After disable buffering works much better. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@xxxxxxxxx> --- tests/hwsim/remotehost.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/remotehost.py b/tests/hwsim/remotehost.py index 0799b951f..14c3559ff 100644 --- a/tests/hwsim/remotehost.py +++ b/tests/hwsim/remotehost.py @@ -24,7 +24,7 @@ def execute_thread(command, reply): err = tempfile.TemporaryFile() try: status = 0 - buf = subprocess.check_output(command, stderr=err).decode() + buf = subprocess.check_output(command, stderr=err, bufsize=0).decode() except subprocess.CalledProcessError as e: status = e.returncode err.seek(0) @@ -181,7 +181,7 @@ class Host(): _cmd = self.name + " proc_run: " + ' '.join(cmd) logger.debug(_cmd) err = tempfile.TemporaryFile() - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=err) + proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=err, bufsize=0) proc.reaper_file = filename return proc -- 2.25.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap