diff --git a/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py b/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py index 461fae43540f2d9c86134e6ba920583010931414..3005922a5b86c9c9fc86cf9a1e777bea6fa74e0e 100755 --- a/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py +++ b/compiler-rt/test/sanitizer_common/ohos_family_commands/ohos_common.py @@ -47,7 +47,7 @@ def pull_from_device(path): tmp = tempfile.mktemp() hdc(['file', 'recv', path, tmp], attempts=5, check_stdout='FileTransfer finish') - text = open(tmp, 'r').read() + text = open(tmp, 'r', errors='ignore').read() os.unlink(tmp) return text