Fix render test Python error on crashes

This commit is contained in:
Brecht Van Lommel 2019-08-25 17:26:11 +02:00
parent b2608af702
commit dc216c89e0
1 changed files with 3 additions and 1 deletions

View File

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