mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix potential render tests error with invalid utf-8 characters
In general should not happen, but better to report the actual error instead of the Python test code failing.
This commit is contained in:
parent
95fca22bfe
commit
cc653c9b02
2 changed files with 4 additions and 4 deletions
|
|
@ -410,7 +410,7 @@ class Report:
|
|||
failed = False
|
||||
except subprocess.CalledProcessError as e:
|
||||
if self.verbose:
|
||||
print_message(e.output.decode("utf-8"))
|
||||
print_message(e.output.decode("utf-8", 'ignore'))
|
||||
failed = e.returncode != 1
|
||||
else:
|
||||
if not self.update:
|
||||
|
|
@ -437,7 +437,7 @@ class Report:
|
|||
subprocess.check_output(command)
|
||||
except subprocess.CalledProcessError as e:
|
||||
if self.verbose:
|
||||
print_message(e.output.decode("utf-8"))
|
||||
print_message(e.output.decode("utf-8", 'ignore'))
|
||||
|
||||
return not failed
|
||||
|
||||
|
|
@ -488,7 +488,7 @@ class Report:
|
|||
if verbose:
|
||||
print(" ".join(command))
|
||||
if (verbose or crash) and output:
|
||||
print(output.decode("utf-8"))
|
||||
print(output.decode("utf-8", 'ignore'))
|
||||
|
||||
# Detect missing filepaths and consider those errors
|
||||
for filepath, output_filepath in zip(remaining_filepaths[:], output_filepaths):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue