[Bf-blender-cvs] [90b2b995054] blender2.8: Unitettesting: Force python errors to show as error

Dalai Felinto noreply at git.blender.org
Mon Apr 10 10:08:34 CEST 2017


Commit: 90b2b995054d6ecad72283ad2b19da94296981ea
Author: Dalai Felinto
Date:   Mon Apr 10 10:03:02 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB90b2b995054d6ecad72283ad2b19da94296981ea

Unitettesting: Force python errors to show as error

===================================================================

M	tests/python/render_layer/CMakeLists.txt

===================================================================

diff --git a/tests/python/render_layer/CMakeLists.txt b/tests/python/render_layer/CMakeLists.txt
index 251a1d1d016..97630bfd972 100644
--- a/tests/python/render_layer/CMakeLists.txt
+++ b/tests/python/render_layer/CMakeLists.txt
@@ -54,6 +54,7 @@ macro(RENDER_LAYER_TEST test_name)
 	# things from render_layer_common.py
 	add_test(render_layer_${test_name} ${TEST_BLENDER_EXE}
 		--python-expr "import sys; sys.path.append('${CMAKE_CURRENT_LIST_DIR}')"
+		--python-exit-code 1
 		--python ${CMAKE_CURRENT_LIST_DIR}/test_${test_name}.py --
 		--testdir="${TEST_SRC_DIR}/layers"
 	)




More information about the Bf-blender-cvs mailing list