diff --git a/scripts/test_filedma.sh b/scripts/test_filedma.sh index c425f7b7f7e13adf2652d6fc9b850a6a69dc3efc..25b0f120dd1ce519b5fb81595c7eee16214576e5 100755 --- a/scripts/test_filedma.sh +++ b/scripts/test_filedma.sh @@ -86,10 +86,13 @@ function run_filedma_test() { local test_failed=1 echo "${FUNCNAME}: starting SCDAQ test with ${test_id} P5 capture file" echo "${FUNCNAME}: timeout ${timeout_secs}s ./${SCDAQ_PATH} --config ${config_file}" - python3 scripts/start_run.py & - timeout ${timeout_secs}s ./"${SCDAQ_PATH}" --config ${config_file} | uniq -uc - ret_status="${PIPESTATUS[0]}" - wait + # Launch SCDAQ instance + timeout ${timeout_secs}s ./"${SCDAQ_PATH}" --config ${config_file} & scdaq_thread=$! + # Launch dummy function manager asynchronously + python3 scripts/start_run.py & fm_thread=$! + wait ${scdaq_thread} + ret_status=$? + wait ${fm_thread} # We expect a TIMEOUT failure because `scdaq` is not normally supposed to return. if [[ "${ret_status}" -ne 124 ]]; then