mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
oeqa/selftest/glibc: Handle incorrect encoding issuesin glibc test results
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. (From OE-Core rev: 3939b1923387d3bc440118ed1663d28a03a1ea5d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user