From 81db8200e294c38d1e5851f1c0ca98064fde4e72 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Fri, 13 Nov 2020 13:41:44 +0000 Subject: [PATCH] utils/logcatmonitor: Ensure adb_server is specified Ensure the adb_server is specific when monitoring the logcat. --- devlib/utils/android.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/utils/android.py b/devlib/utils/android.py index 2c5c59e..e1c968f 100755 --- a/devlib/utils/android.py +++ b/devlib/utils/android.py @@ -834,7 +834,7 @@ class LogcatMonitor(object): if self._logcat_format: logcat_cmd = "{} -v {}".format(logcat_cmd, quote(self._logcat_format)) - logcat_cmd = get_adb_command(self.target.conn.device, logcat_cmd) + logcat_cmd = get_adb_command(self.target.conn.device, logcat_cmd, self.target.adb_server) logger.debug('logcat command ="{}"'.format(logcat_cmd)) self._logcat = pexpect.spawn(logcat_cmd, logfile=self._logfile, encoding='utf-8')