summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 19f0f92b74..59dc11d00f 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -74,7 +74,7 @@ class QemuRunner:
74 if self.logfile: 74 if self.logfile:
75 # It is needed to sanitize the data received from qemu 75 # It is needed to sanitize the data received from qemu
76 # because is possible to have control characters 76 # because is possible to have control characters
77 msg = msg.decode("utf-8") 77 msg = msg.decode("utf-8", errors='ignore')
78 msg = re_control_char.sub('', msg) 78 msg = re_control_char.sub('', msg)
79 with codecs.open(self.logfile, "a", encoding="utf-8") as f: 79 with codecs.open(self.logfile, "a", encoding="utf-8") as f:
80 f.write("%s" % msg) 80 f.write("%s" % msg)