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
path: root/tests
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-25 18:26:11 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-26 11:10:35 +0300
commitdc216c89e0b0f829f31e37ecbd19a6a54573bc65 (patch)
treeffd8664e43030c7ab13b75ae21f3c9b339355913 /tests
parentb2608af7025f4d41e12a0ceaf73087903f02e23f (diff)
Fix render test Python error on crashes
Diffstat (limited to 'tests')
-rwxr-xr-xtests/python/modules/render_report.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/python/modules/render_report.py b/tests/python/modules/render_report.py
index 6e3223140ce..58eae834879 100755
--- a/tests/python/modules/render_report.py
+++ b/tests/python/modules/render_report.py
@@ -431,6 +431,7 @@ class Report:
# Run process
crash = False
+ output = None
try:
output = subprocess.check_output(command)
except subprocess.CalledProcessError as e:
@@ -440,7 +441,8 @@ class Report:
if verbose:
print(" ".join(command))
- print(output.decode("utf-8"))
+ if output:
+ print(output.decode("utf-8"))
# Detect missing filepaths and consider those errors
for filepath, output_filepath in zip(remaining_filepaths[:], output_filepaths):