I use CTest fixtures.
In my FIXTURES_SETUP
I call a bash script, wich is starting a service in the background via:
"$@" > ${SERVICE_LOG_FILE} 2>&1 &
RESULT=$?
You see how I store the log output via a text file
Then in the FIXTURES_CLEANUP
step I print the output of the logfile:
$(cat ${SERVICE_LOG_FILE})
However, even when the logfile contains text like this:
“[2020-09-18′ ’15:07:05.978]’ ‘[error]’ ‘FAILED!'”
Ctest does not mark my FIXTURES_CLEANUP test a failed.
What is the problem?