3e744db9fedc37475c882b8360ab08514b856e59
The current handling had a fairly bad issue: multiple calls to `set_tests_properties` to set envvars of a same test. This does not work, only the last call is effective, all previous ones have absolutely no effect. This has been addressed by moving all 'set envvar for test' logic into a single CMake function, `blender_test_set_envvars`. This function takes optional extra envvars if needed, and define a set of default ones (currently, `PATH` from `PLATFORM_ENV_INSTALL` if defined, and the 'nuke' `exitcode=0` `LSAN_OPTIONS` if relevant). NOTE: The way `blender_test_set_envvars` handles extra envvars passed to it as parameter is fairly basic and unsafe, in that there is no check whether a same envvar is defined more than once. Think for now this is an acceptable limitation. NOTE: Although this commit _should_ be a non-functional change one, the unification of the handling of all envvars makes it hard to ensure there is no side effects. The `PATH` envvar e.g. was set to either `PLATFORM_ENV_INSTALL` if defined, or a copy of that variable's definition, but only in Windows case. So technically, the behavior for this envvar is changed.
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
