Skip to content
Snippets Groups Projects
Commit f1b0e55e authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

use python3 for test

parent 37186bc5
No related branches found
No related tags found
No related merge requests found
set(TARGET_NAME consumer_python_memleak)
set(TARGET_NAME streamlist_python)
prepare_asapo()
find_package (Python3 REQUIRED)
if (UNIX)
get_target_property(PYTHON_LIBS python-lib-consumer BINARY_DIR)
get_target_property(PYTHON_LIBS_PRODUCER python-lib-producer BINARY_DIR)
......@@ -11,7 +14,7 @@ else()
get_target_property(PYTHON_LIBS_PRODUCER asapo_producer BINARY_DIR)
endif()
add_script_test("${TARGET_NAME}" "${PYTHON_LIBS} ${PYTHON_LIBS_PRODUCER} ${Python_EXECUTABLE}" nomem)
add_script_test("${TARGET_NAME}" "${PYTHON_LIBS} ${PYTHON_LIBS_PRODUCER} ${Python3_EXECUTABLE}" nomem)
configure_file(magic_producer.py magic_producer.py COPYONLY)
......@@ -28,9 +28,9 @@ nomad run authorizer.nmd
sleep 1
export PYTHONPATH=$1:$2:${PYTHONPATH}
export Python_EXECUTABLE=$3
export Python3_EXECUTABLE=$3
$Python_EXECUTABLE magic_producer.py $endpoint $beamtime_id $token > out
$Python3_EXECUTABLE magic_producer.py $endpoint $beamtime_id $token > out
cat out
cat out | grep "5 : number of streams source_1: 5"
cat out | grep "5 : number of streams source_2: 5"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment