diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-25 18:26:11 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-26 11:10:35 +0300 |
commit | dc216c89e0b0f829f31e37ecbd19a6a54573bc65 (patch) | |
tree | ffd8664e43030c7ab13b75ae21f3c9b339355913 /tests/python/modules/render_report.py | |
parent | b2608af7025f4d41e12a0ceaf73087903f02e23f (diff) |
Fix render test Python error on crashes
Diffstat (limited to 'tests/python/modules/render_report.py')
-rwxr-xr-x | tests/python/modules/render_report.py | 4 |
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): |