summaryrefslogtreecommitdiff
path: root/bin
diff options
authorPierre Equoy <pierre.equoy@canonical.com>2016-07-12 15:47:26 +0800
committerPierre Equoy <pierre.equoy@canonical.com>2016-07-12 15:47:26 +0800
commitfbc0a32436284f87c9e3b78d332e470eb019d2aa (patch)
tree1e3799b0bcf2557ab3b6af704ab9fd6ee39bea26 /bin
parentcc59de128ef2a01491bf528b21b81d4c124ed13a (diff)
provider:checkbox: Avoid UnicodeDecodeError when running stress tests
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pm_test4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pm_test b/bin/pm_test
index 558c464..1449604 100755
--- a/bin/pm_test
+++ b/bin/pm_test
@@ -324,11 +324,11 @@ class Command(object):
'- returncode:\n{0}'.format(self.process.returncode)]
if stdout:
if type(stdout) is bytes:
- stdout = stdout.decode('utf-8')
+ stdout = stdout.decode('utf-8', 'ignore')
message.append('- stdout:\n{0}'.format(stdout))
if stderr:
if type(stderr) is bytes:
- stderr = stderr.decode('utf-8')
+ stderr = stderr.decode('utf-8', 'ignore')
message.append('- stderr:\n{0}'.format(stderr))
logging.debug('\n'.join(message))