Fix test_motion_ramp on Windows
* 'python3' is not valid on Windows * call the .py file with 'python' command to prevent BAD_COMMAND errorpull/217/head
parent
37f820e9a6
commit
01ef1191b0
|
|
@ -24,13 +24,13 @@ add_test(NAME motion::rampgen COMMAND rampgen ramp_data.txt)
|
||||||
add_dependencies(tests rampgen)
|
add_dependencies(tests rampgen)
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND python3 -c "import pandas"
|
COMMAND "${Python3_EXECUTABLE}" -c "import pandas"
|
||||||
RESULT_VARIABLE PANDAS_INSTALLED
|
RESULT_VARIABLE PANDAS_INSTALLED
|
||||||
OUTPUT_QUIET ERROR_QUIET
|
OUTPUT_QUIET ERROR_QUIET
|
||||||
)
|
)
|
||||||
if(${PANDAS_INSTALLED} EQUAL 0)
|
if(${PANDAS_INSTALLED} EQUAL 0)
|
||||||
# only run test_motion_ramp if pandas is installed
|
# only run test_motion_ramp if pandas is installed
|
||||||
add_test(NAME motion::test_motion_ramp COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_motion_ramp.py
|
add_test(NAME motion::test_motion_ramp COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/test_motion_ramp.py
|
||||||
ramp_data.txt
|
ramp_data.txt
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue