Skip to content

Commit

Permalink
Ensure that the tests find the built python python module vs an insta…
Browse files Browse the repository at this point in the history
…lled one

This may have a slightly messy un-intended consequence of
"snap-shotting" pythonpath when configured in a large python env, but
eases testing confusion on systems where pythonpath is not yet set, but
an (older) copy of OpenImageIO is installed.

Signed-off-by: Kimball Thurston <[email protected]>
  • Loading branch information
kdt3rd committed Sep 8, 2024
1 parent f751f21 commit 04848f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmake/testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ macro (oiio_add_tests)
"OIIO_TESTSUITE_ROOT=${_testsuite}"
"OIIO_TESTSUITE_SRC=${_testsrcdir}"
"OIIO_TESTSUITE_CUR=${_testdir}"
"PYTHONPATH=${CMAKE_BINARY_DIR}/lib/python/site-packages:$ENV{PYTHONPATH}"
${_ats_ENVIRONMENT})
if (NOT ${_ats_testdir} STREQUAL "")
set_property(TEST ${_testname} APPEND PROPERTY ENVIRONMENT
Expand Down

0 comments on commit 04848f0

Please sign in to comment.