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 /CMakeLists.txt | |
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 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e89943714a..810a6b011fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -550,6 +550,7 @@ endif() option(WITH_GTESTS "Enable GTest unit testing" OFF) option(WITH_OPENGL_RENDER_TESTS "Enable OpenGL render related unit testing (Experimental)" OFF) option(WITH_OPENGL_DRAW_TESTS "Enable OpenGL UI drawing related unit testing (Experimental)" OFF) +# NOTE: All callers of this must add `TEST_PYTHON_EXE_EXTRA_ARGS` before any other arguments. set(TEST_PYTHON_EXE "" CACHE PATH "Python executable to run unit tests") mark_as_advanced(TEST_PYTHON_EXE) |