[Bf-blender-cvs] [dc216c89e0b] master: Fix render test Python error on crashes

Brecht Van Lommel noreply at git.blender.org
Mon Aug 26 10:35:09 CEST 2019


Commit: dc216c89e0b0f829f31e37ecbd19a6a54573bc65
Author: Brecht Van Lommel
Date:   Sun Aug 25 17:26:11 2019 +0200
Branches: master
https://developer.blender.org/rBdc216c89e0b0f829f31e37ecbd19a6a54573bc65

Fix render test Python error on crashes

===================================================================

M	tests/python/modules/render_report.py

===================================================================

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):



More information about the Bf-blender-cvs mailing list