summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-07-17 09:39:52 +0200
committerLaurent Bonnans <laurent.bonnans@here.com>2019-07-18 16:14:14 +0200
commit7d7f5ac05e595d97eda1faf7f1c709ce4a05c12b (patch)
tree589d2c6c8d75d5967766e4d304f063e731a49f3d /lib
parenta206b343583748e05674e6cc9bbcbf8dc4a1c21c (diff)
downloadmeta-updater-7d7f5ac05e595d97eda1faf7f1c709ce4a05c12b.tar.gz
Avoid unicode decode error in ptest
The full suite logs often contains invalid utf8 sequences. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py b/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py
index e9a1a65..6b300f7 100644
--- a/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py
+++ b/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py
@@ -41,7 +41,7 @@ class PtestTests(OESelftestTestCase):
41 if has_failure: 41 if has_failure:
42 print("Full test suite log:") 42 print("Full test suite log:")
43 stdout, _, _ = self.qemu_command('cat /tmp/aktualizr-ptest.log || cat /tmp/aktualizr-ptest.log.tmp', timeout=None) 43 stdout, _, _ = self.qemu_command('cat /tmp/aktualizr-ptest.log || cat /tmp/aktualizr-ptest.log.tmp', timeout=None)
44 print(stdout.decode()) 44 print(stdout.decode(errors='replace'))
45 45
46 self.assertEqual(retcode, 0) 46 self.assertEqual(retcode, 0)
47 self.assertFalse(has_failure) 47 self.assertFalse(has_failure)