Skip to content

Commit b8cd9d3

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
feat: Improve test logging for ex_MQ_pixel_split
ex_MQ_pixel_split seems to fail sometimes. Let's output the last lines of the logs of the failing processes.
1 parent 3dc1e33 commit b8cd9d3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

examples/MQ/pixelSimSplit/run/scripts/test-splitMQ.sh.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,13 @@ echo "Terminating topology ..."
9999
kill ${PIDS[TRANSPORTER]} ${PIDS[MERGER]} ${PIDS[PARMQSERVER]} ${PIDS[FILESINK]}
100100
for DEVICE in TRANSPORTER MERGER PARMQSERVER FILESINK
101101
do
102-
wait ${PIDS[$DEVICE]} || { ret=$?; echo "$DEVICE failed with exit code $ret"; RC=$(($RC + $ret)); }
102+
wait ${PIDS[$DEVICE]} || {
103+
ret=$?
104+
echo "*** $DEVICE failed with exit code $ret"
105+
RC=$(($RC + $ret))
106+
echo " Last lines of log:"
107+
tail -n 50 "${LOGS[$DEVICE]}" | sed -e 's/^/ | /'
108+
}
103109
done
104110
echo "... terminated (RC=$RC)."
105111

0 commit comments

Comments
 (0)