File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -463,7 +463,7 @@ function(py_test TARGET_NAME)
463
463
cmake_parse_arguments (py_test "${options} " "${oneValueArgs} " "${multiValueArgs} " ${ARGN} )
464
464
add_test (NAME ${TARGET_NAME}
465
465
COMMAND env PYTHONPATH=${PADDLE_PYTHON_BUILD_DIR}/lib-python
466
- python2 ${py_test_SRCS}
466
+ ${PYTHON_EXECUTABLE} ${py_test_SRCS}
467
467
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
468
468
endif ()
469
469
endfunction ()
Original file line number Diff line number Diff line change @@ -168,17 +168,3 @@ function(create_resources res_file output_file)
168
168
COMMAND python ARGS ${PADDLE_SOURCE_DIR} /cmake/make_resource.py ${res_file} ${output_file}
169
169
DEPENDS ${res_file} ${PADDLE_SOURCE_DIR} /cmake/make_resource.py )
170
170
endfunction ()
171
-
172
-
173
- # Create a python unittest using run_python_tests.sh,
174
- # which takes care of making correct running environment
175
- function (add_python_test TEST_NAME )
176
- foreach (arg ${ARGN} )
177
- get_filename_component (py_fn ${arg} NAME_WE )
178
- set (TRG_NAME ${TEST_NAME} _${py_fn} )
179
- add_test (NAME ${TRG_NAME}
180
- COMMAND env PYTHONPATH=${PADDLE_PYTHON_PACKAGE_DIR}
181
- python2 ${arg}
182
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
183
- endforeach ()
184
- endfunction ()
You can’t perform that action at this time.
0 commit comments