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:
Brad King
2017-04-03 13:36:08 -04:00
parent 18eeed4194
commit e51d939525
+1
View File
@@ -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}"