summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index b8f5111286..b738a261d8 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -109,7 +109,7 @@ class QemuRunner:
109 109
110 def decode_qemulog(self, todecode): 110 def decode_qemulog(self, todecode):
111 # Sanitize the data received from qemu as it may contain control characters 111 # Sanitize the data received from qemu as it may contain control characters
112 msg = todecode.decode("utf-8", errors='ignore') 112 msg = todecode.decode("utf-8", errors='backslashreplace')
113 msg = re_control_char.sub('', msg) 113 msg = re_control_char.sub('', msg)
114 return msg 114 return msg
115 115
@@ -473,7 +473,7 @@ class QemuRunner:
473 self.logger.error('Invalid file type: %s\n%s' % (file)) 473 self.logger.error('Invalid file type: %s\n%s' % (file))
474 read = b'' 474 read = b''
475 475
476 self.logger.debug2('Partial boot log:\n%s' % (read.decode('utf-8', errors='ignore'))) 476 self.logger.debug2('Partial boot log:\n%s' % (read.decode('utf-8', errors='backslashreplace')))
477 data = data + read 477 data = data + read
478 if data: 478 if data:
479 bootlog += data 479 bootlog += data