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:
parent
6992e14eee
commit
6b0f7729e1
@ -1147,7 +1147,7 @@ class GstValidateTest(Test):
|
|||||||
msg = ""
|
msg = ""
|
||||||
result = Result.PASSED
|
result = Result.PASSED
|
||||||
if self.result == Result.TIMEOUT:
|
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())
|
signal_fault_info = self.fault_sig_regex.findall(f.read())
|
||||||
if signal_fault_info:
|
if signal_fault_info:
|
||||||
result = Result.FAILED
|
result = Result.FAILED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user