Tests: disable python tests for blender as python module

Avoid CTest errors and exit codes due to test failures which depend
on Blender executable.

Ref T86579
Reviewed By: mont29, campbellbarton
Differential Revision: https://developer.blender.org/D10656
This commit is contained in:
Ankit Meel 2021-03-29 22:25:52 +05:30
parent 241f05d53c
commit fbe2c3f422
Notes: blender-bot 2023-02-14 10:09:24 +01:00
Referenced by issue #86579, macOS: improve bpy build system support
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ unset(_default_test_python_exe)
set(TEST_BLENDER_EXE_PARAMS --background -noaudio --factory-startup --debug-memory --debug-exit-on-error --python-exit-code 1)
# Python CTests
if(WITH_BLENDER AND WITH_PYTHON)
if(WITH_BLENDER AND WITH_PYTHON AND NOT WITH_PYTHON_MODULE)
add_subdirectory(python)
endif()