diff --git a/tests/automatic/bug_fixes/streamlist_python_multithread/CMakeLists.txt b/tests/automatic/bug_fixes/streamlist_python_multithread/CMakeLists.txt index 32b3c885e3a01f74c55a3d657af5851b686deba2..704002fc8e41064709fb34552514a79c2db1cc82 100644 --- a/tests/automatic/bug_fixes/streamlist_python_multithread/CMakeLists.txt +++ b/tests/automatic/bug_fixes/streamlist_python_multithread/CMakeLists.txt @@ -1,8 +1,11 @@ -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) diff --git a/tests/automatic/bug_fixes/streamlist_python_multithread/check_linux.sh b/tests/automatic/bug_fixes/streamlist_python_multithread/check_linux.sh index 162da7d2d5a70f669602064b4184af61ac4446d2..678925935e45b108d355dd5755ddc33f24dc247f 100644 --- a/tests/automatic/bug_fixes/streamlist_python_multithread/check_linux.sh +++ b/tests/automatic/bug_fixes/streamlist_python_multithread/check_linux.sh @@ -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"