Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-09-28 21:36:20 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-09-28 21:50:38 +0300
commitcc653c9b02b34349e7896b8a4e92a5b0e69c0322 (patch)
tree5c557f563bec247e6c8a93431cd5c95bedda8dad /tests/python/modules/render_report.py
parent95fca22bfeb1d3e2edeeb71b9717e3528be14c17 (diff)
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.
Diffstat (limited to 'tests/python/modules/render_report.py')
-rwxr-xr-xtests/python/modules/render_report.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py
index 560f8e33585..90f16dc80fb 100755
--- a/tests/python/modules/render_report.py
+++ b/tests/python/modules/render_report.py
@@ -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):