Skip to content

Commit

Permalink
Set TMPDIR for pythong test to under the build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed May 28, 2024
1 parent f64b7b6 commit 71b01aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/UsePythonTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ macro(ADD_PYTHON_TEST TESTNAME FILENAME)
set_tests_properties(${TESTNAME} PROPERTIES TIMEOUT ${TEST_TIMEOUT})
endif()

set_tests_properties(${TESTNAME} PROPERTIES FIXTURES_REQUIRED SOURCETREE)
set_tests_properties(${TESTNAME} PROPERTIES
FIXTURES_REQUIRED SOURCETREE
ENVIRONMENT "TMPDIR=${CMAKE_BINARY_DIR}/tmp"
)

endmacro(ADD_PYTHON_TEST)

0 comments on commit 71b01aa

Please sign in to comment.