Seem to need this change to the PYTHONPATH to permit googletest's python tests to be able to include gtest_test_utils from googletest.test

This commit is contained in:
John 2024-02-14 12:05:57 +00:00
parent 37e5e2e430
commit ae025daee7

View File

@ -290,7 +290,7 @@ function(py_test name)
--build_dir=${build_dir} ${ARGN})
# Make the Python import path consistent between Bazel and CMake.
set_tests_properties(${name} PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_SOURCE_DIR})
set_tests_properties(${name} PROPERTIES ENVIRONMENT PYTHONPATH=${CMAKE_SOURCE_DIR}/..)
endfunction()
# install_project(targets...)