[Bf-blender-cvs] [04b3d68] master: Cycles tests: Don't create fail file on idiff warning
Sergey Sharybin
noreply at git.blender.org
Wed Jul 6 17:38:45 CEST 2016
Commit: 04b3d682bbfaba08d66efef326a55bf4a00d1e3c
Author: Sergey Sharybin
Date: Wed Jul 6 17:39:09 2016 +0200
Branches: master
https://developer.blender.org/rB04b3d682bbfaba08d66efef326a55bf4a00d1e3c
Cycles tests: Don't create fail file on idiff warning
===================================================================
M tests/python/cycles_render_tests.py
===================================================================
diff --git a/tests/python/cycles_render_tests.py b/tests/python/cycles_render_tests.py
index fb9e63a..e1b5e2d 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
More information about the Bf-blender-cvs
mailing list