diff options
-rwxr-xr-x | tests/python/cycles_render_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index fb9e63aa222..e1b5e2d1d23 100755 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -70,7 +70,8 @@ def verify_output(filepath): os.remove(failed_image) return True except subprocess.CalledProcessError as e: - shutil.copy(TEMP_FILE, failed_image) + if e.returncode != 1: + shutil.copy(TEMP_FILE, failed_image) if VERBOSE: print(e.output.decode("utf-8")) return e.returncode == 1 |