diff options
author | Campbell Barton <campbell@blender.org> | 2022-11-03 03:48:47 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-11-03 03:51:52 +0300 |
commit | b320597697d8c28798342ffc45a330f86ed276ca (patch) | |
tree | 9a676f017b98f98666bf399fd86ccf3eb22e4bea /tests/blender_as_python_module | |
parent | bad55d56bc71ec9b5f2478de6a1ce350b474de57 (diff) |
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.
Diffstat (limited to 'tests/blender_as_python_module')
-rw-r--r-- | tests/blender_as_python_module/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blender_as_python_module/CMakeLists.txt b/tests/blender_as_python_module/CMakeLists.txt index 6e0ce524903..7387d5c41bf 100644 --- a/tests/blender_as_python_module/CMakeLists.txt +++ b/tests/blender_as_python_module/CMakeLists.txt @@ -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. |