diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-08-11 01:38:39 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2017-08-11 02:09:35 +0300 |
commit | 977e7b68cb6e27d23d97485adad1eeb7ae5fe226 (patch) | |
tree | 3b0ec8a63a0f62354957329283877609f5895b33 /tests/python/cycles_render_tests.py | |
parent | 267e75158a32d8051a95e4fa9b6feba33ee2d586 (diff) |
Cycles: add denoising tests, keep new image even if no reference exists.
Diffstat (limited to 'tests/python/cycles_render_tests.py')
-rwxr-xr-x | tests/python/cycles_render_tests.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py index ea84f27ab7e..ffd8627dbf2 100755 --- a/tests/python/cycles_render_tests.py +++ b/tests/python/cycles_render_tests.py @@ -222,6 +222,14 @@ class Report: def verify_output(report, filepath): ref_img, new_img, diff_img = test_get_images(filepath) + + # copy new image + if os.path.exists(new_img): + os.remove(new_img) + if os.path.exists(TEMP_FILE): + shutil.copy(TEMP_FILE, new_img) + + if not os.path.exists(ref_img): return False @@ -256,12 +264,6 @@ def verify_output(report, filepath): if VERBOSE: print_message(e.output.decode("utf-8")) - # copy new image - if os.path.exists(new_img): - os.remove(new_img) - if os.path.exists(TEMP_FILE): - shutil.copy(TEMP_FILE, new_img) - return not failed |