aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/shell.py
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-03-28 14:42:35 +0100
committerNeil Williams <neil.williams@linaro.org>2018-03-28 14:59:17 +0100
commit8d6c5ec70dee2f899e83d681efff033f83e36899 (patch)
treeee5a804b92f6a6a8c1cc9a93e4c1d55004384ff9 /lava_dispatcher/shell.py
parent0e255c3bfbd0388cf1679e0f19bcac0ce74f9d8f (diff)
Python3 fixes
Ensure that pexpect is able to replace invalid UTF8 characters received over the serial connection without losing input or raising an exception. Fix pylint warning in power.py and output the full exception instead of just the summary message. Change-Id: I1cb7e0da0b015a50d99bdea58ec22d6ac3788226
Diffstat (limited to 'lava_dispatcher/shell.py')
-rw-r--r--lava_dispatcher/shell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lava_dispatcher/shell.py b/lava_dispatcher/shell.py
index 2b44dea53..f85d52650 100644
--- a/lava_dispatcher/shell.py
+++ b/lava_dispatcher/shell.py
@@ -105,6 +105,7 @@ class ShellCommand(pexpect.spawn): # pylint: disable=too-many-public-methods
cwd=cwd,
logfile=ShellLogger(logger),
encoding='utf-8',
+ codec_errors='replace'
)
self.name = "ShellCommand"
self.logger = logger