diff options
| -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 cf3d44d12d..51032ef1a9 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py | |||
| @@ -210,7 +210,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 210 | logger.debug('time: %s, endtime: %s' % (time.time(), endtime)) | 210 | logger.debug('time: %s, endtime: %s' % (time.time(), endtime)) |
| 211 | try: | 211 | try: |
| 212 | if select.select([process.stdout], [], [], 5)[0] != []: | 212 | if select.select([process.stdout], [], [], 5)[0] != []: |
| 213 | reader = codecs.getreader('utf-8')(process.stdout, 'surrogatepass') | 213 | reader = codecs.getreader('utf-8')(process.stdout, 'ignore') |
| 214 | data = reader.read(1024, 4096) | 214 | data = reader.read(1024, 4096) |
| 215 | if not data: | 215 | if not data: |
| 216 | process.stdout.close() | 216 | process.stdout.close() |
| @@ -237,7 +237,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 237 | output += lastline | 237 | output += lastline |
| 238 | 238 | ||
| 239 | else: | 239 | else: |
| 240 | output = process.communicate()[0].decode("utf-8", errors='surrogatepass') | 240 | output = process.communicate()[0].decode('utf-8', errors='ignore') |
| 241 | logger.debug('Data from SSH call: %s' % output.rstrip()) | 241 | logger.debug('Data from SSH call: %s' % output.rstrip()) |
| 242 | 242 | ||
| 243 | options = { | 243 | options = { |
