Fix render test Python error on crashes
This commit is contained in:
@@ -431,6 +431,7 @@ class Report:
|
|||||||
|
|
||||||
# Run process
|
# Run process
|
||||||
crash = False
|
crash = False
|
||||||
|
output = None
|
||||||
try:
|
try:
|
||||||
output = subprocess.check_output(command)
|
output = subprocess.check_output(command)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
@@ -440,7 +441,8 @@ class Report:
|
|||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print(" ".join(command))
|
print(" ".join(command))
|
||||||
print(output.decode("utf-8"))
|
if output:
|
||||||
|
print(output.decode("utf-8"))
|
||||||
|
|
||||||
# Detect missing filepaths and consider those errors
|
# Detect missing filepaths and consider those errors
|
||||||
for filepath, output_filepath in zip(remaining_filepaths[:], output_filepaths):
|
for filepath, output_filepath in zip(remaining_filepaths[:], output_filepaths):
|
||||||
|
Reference in New Issue
Block a user