mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-09 23:59:53 -05:00
Tests: Avoid generating .pyc files during Server test
Avoid writing any files to the source tree during testing. Fixes: #16770
This commit is contained in:
@@ -5,6 +5,7 @@ find_package(PythonInterp REQUIRED)
|
||||
|
||||
macro(do_test bsname file)
|
||||
execute_process(COMMAND ${PYTHON_EXECUTABLE}
|
||||
-B # no .pyc files
|
||||
"${CMAKE_SOURCE_DIR}/server-test.py"
|
||||
"${CMAKE_COMMAND}"
|
||||
"${CMAKE_SOURCE_DIR}/${file}"
|
||||
|
||||
Reference in New Issue
Block a user