Skip to content
Snippets Groups Projects
Commit b673ebdc authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Merge branch 'fix_daqd_stall_test' into 'master'

The daqd stall test often fails when it shouldn't

See merge request cds/advligorts!164
parents 8397f145 7bb3cc13
No related branches found
No related tags found
1 merge request!164The daqd stall test often fails when it shouldn't
...@@ -86,20 +86,38 @@ PID_DAQD=$! ...@@ -86,20 +86,38 @@ PID_DAQD=$!
echo "Daqd PID = $PID_DAQD" echo "Daqd PID = $PID_DAQD"
sleep 15 sleep 5
tries=0
SVAL=`caget -F z -f 0 X3:DAQ-SHM0_PRDCR_NOT_STALLED | cut -d z -f 2`
while [ "$SVAL" -ne "1" ]; do
sleep 2
SVAL=`caget -F z -f 0 X3:DAQ-SHM0_PRDCR_NOT_STALLED | cut -d z -f 2`
let tries+=1
if [ "$tries" -gt "15" ]; then
echo "The daqd did not leave the stalled state"
exit 1
fi
done
echo "Killing the streamer" echo "Killing the streamer"
kill $PID_MULTI_STREAM kill $PID_MULTI_STREAM
PID_MULTI_STREAM=0 PID_MULTI_STREAM=0
sleep 5 sleep 2
SVAL=`caget -F z -f 0 X3:DAQ-SHM0_PRDCR_NOT_STALLED | cut -d z -f 2` SVAL=`caget -F z -f 0 X3:DAQ-SHM0_PRDCR_NOT_STALLED | cut -d z -f 2`
echo "X3:DAQ-SHM0_PRDCR_NOT_STALLED = $SVAL" tries=0
if [ "$SVAL" -ne "0" ]; then while [ "$SVAL" -ne "0" ]; do
exit 1 echo "X3:DAQ-SHM0_PRDCR_NOT_STALLED = $SVAL"
fi let tries+=1
if [ "$tries" -gt "5" ]; then
echo "The daqd did not enter the stalled state"
exit 1
fi
sleep 1
SVAL=`caget -F z -f 0 X3:DAQ-SHM0_PRDCR_NOT_STALLED | cut -d z -f 2`
done
#echo "Press enter to continue..." #echo "Press enter to continue..."
#DUMMY="" #DUMMY=""
......
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