Skip to content
Snippets Groups Projects
Commit 804ae72d authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Made MESH BSN monitor check more robust by also checking expected number of SOPs.

parent f6cf6631
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,8 @@ echo central_status.sh: UniBoards : $UNBS
echo central_status.sh: Options : $OPTIONS
echo central_status.sh: Polarisation : $POL
NOF_UNIBOARDS=$(echo $UNBS, | grep -o ',' | wc -l)
if [ "$OPTIONS" == "precheck" ]; then
###############################################################################
# Pre (command sequence) check
......@@ -91,4 +93,13 @@ else
exit 1
fi
NOF_BSN_SOPS_EXPECTED=$(($NOF_UNIBOARDS * 8))
NOF_BSN_SOPS=$(python $UPE/peripherals/util_bsn_monitor.py --unb $UNBS --fn 0:3 --bn 0:3 -n 1 -r 4 -s MESH | grep -c "nof_sop = 800000")
if [ "$NOF_BSN_SOPS" == "$NOF_BSN_SOPS_EXPECTED" ]; then
echo central_status.sh: Passed - Found 800000 SOPs per Processing Node post-align MESH BSN monitor
else
echo "central_status.sh: Error - Not enough SOPs for Processing Node post-align MESH BSN monitor(s)"
exit 1
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment