]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest/glibc: Handle incorrect encoding issuesin glibc test results
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Aug 2021 09:15:40 +0000 (10:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Aug 2021 08:52:18 +0000 (09:52 +0100)
We dont control the test output and sometimes see badly encoded characters.
These don't affect the operation of the code we're running. Use
errors='replace' to avoid those issues and the resulting test failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/glibc.py

index be9792330a65bd79661c7500321760931e3d690d..6f96281ea55c593e1953fdedd072bf3aa4f26677 100644 (file)
@@ -33,7 +33,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
 
         ptestsuite = "glibc-user" if ssh is None else "glibc"
         self.ptest_section(ptestsuite)
-        with open(os.path.join(builddir, "tests.sum"), "r") as f:
+        with open(os.path.join(builddir, "tests.sum"), "r",  errors='replace') as f:
             for test, result in parse_values(f):
                 self.ptest_result(ptestsuite, test, result)