validate:launcher: Using surrogateescape error handler

Use surrogateescape error handler to convert undecodable bytes without error.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5008>
This commit is contained in:
ekwang.lee 2023-07-11 13:07:03 +09:00 committed by GStreamer Marge Bot
parent 6992e14eee
commit 6b0f7729e1

View file

@ -1147,7 +1147,7 @@ class GstValidateTest(Test):
msg = ""
result = Result.PASSED
if self.result == Result.TIMEOUT:
with open(self.logfile) as f:
with open(self.logfile, errors="surrogateescape") as f:
signal_fault_info = self.fault_sig_regex.findall(f.read())
if signal_fault_info:
result = Result.FAILED