mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Tests: don't create byte-code cache when calling Python from SVN
Creating `__pycache__` directories in SVN's lib/ directory can cause updating SVN to fail. Add the -B flag when TEST_PYTHON_EXE from LIBDIR is used so so Python doesn't generate this cache.
This commit is contained in:
parent
bad55d56bc
commit
b320597697
4 changed files with 16 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ function(add_python_test testname testscript)
|
|||
|
||||
add_test(
|
||||
NAME ${testname}
|
||||
COMMAND ${TEST_PYTHON_EXE} ${testscript} ${ARGN}
|
||||
COMMAND ${TEST_PYTHON_EXE} ${TEST_PYTHON_EXE_EXTRA_ARGS} ${testscript} ${ARGN}
|
||||
)
|
||||
set_tests_properties(${testname} PROPERTIES ENVIRONMENT
|
||||
LSAN_OPTIONS=exitcode=0:$ENV{LSAN_OPTIONS}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue