diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/core/target/ssh.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py index 8ff1f6c677..2adbb3000c 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py | |||
@@ -207,7 +207,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
207 | logger.debug('time: %s, endtime: %s' % (time.time(), endtime)) | 207 | logger.debug('time: %s, endtime: %s' % (time.time(), endtime)) |
208 | try: | 208 | try: |
209 | if select.select([process.stdout], [], [], 5)[0] != []: | 209 | if select.select([process.stdout], [], [], 5)[0] != []: |
210 | reader = codecs.getreader('utf-8')(process.stdout) | 210 | reader = codecs.getreader('utf-8')(process.stdout, 'surrogatepass') |
211 | data = reader.read(1024, 4096) | 211 | data = reader.read(1024, 4096) |
212 | if not data: | 212 | if not data: |
213 | process.stdout.close() | 213 | process.stdout.close() |
@@ -234,7 +234,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
234 | output += lastline | 234 | output += lastline |
235 | 235 | ||
236 | else: | 236 | else: |
237 | output = process.communicate()[0].decode("utf-8", errors='replace') | 237 | output = process.communicate()[0].decode("utf-8", errors='surrogatepass') |
238 | logger.debug('Data from SSH call: %s' % output.rstrip()) | 238 | logger.debug('Data from SSH call: %s' % output.rstrip()) |
239 | 239 | ||
240 | options = { | 240 | options = { |