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:
@@ -8,7 +8,7 @@ function(add_blender_as_python_module_test testname testscript)
|
||||
|
||||
add_test(
|
||||
NAME ${testname}
|
||||
COMMAND ${TEST_PYTHON_EXE} ${testscript} ${ARGN}
|
||||
COMMAND ${TEST_PYTHON_EXE} ${TEST_PYTHON_EXE_EXTRA_ARGS} ${testscript} ${ARGN}
|
||||
)
|
||||
|
||||
# On macOS, asan library must be loaded early.
|
||||
|
||||
Reference in New Issue
Block a user