Skip to content

Commit

Permalink
Update stageout_verify.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar authored Apr 6, 2024
1 parent 4d0724b commit 24d3a86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stageout_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ trap '/bin/rm -f /tmp/stageout_verify_$$.bin 1> /dev/null 2>&1' 0
voms-proxy-init -voms cms
voms-proxy-info -all

KNOWN_ERRORS = "el9:srm"

KNOWN_ERRORS="el9:srm"
STAGEOUT="gsiftp://gridftp.echo.stfc.ac.uk/cms: \
gsiftp://eoscmsftp.cern.ch/eos/cms \
srm://srmcms.pic.es:8443/srm/managerv2?SFN=/pnfs/pic.es/data/cms/disk \
Expand Down Expand Up @@ -40,6 +39,7 @@ MRC=""
SUMMARY=""
echo ""
OS_VER=$(uname -r | sed 's|.*\.el|el|;s|_.*||')
echo "OS: ${OS_VER}, Known errors: ${KNOWN_ERRORS}"
for PROTO in root gsiftp srm davs; do
PASSED=0
TOTAL=0
Expand All @@ -63,6 +63,7 @@ for PROTO in root gsiftp srm davs; do
done
SUMMARY="${SUMMARY} ${PROTO}($PASSED/$TOTAL)"
KNOWN_ERROR=$(echo "${KNOWN_ERRORS}" | tr ' ' '\n' | grep "^${OS_VER}:${PROTO}$" | wc -l)
echo "Know error: ${OS_VER}:${PROTO}: ${KNOWN_ERROR}"
if [ $PASSED -eq 0 ] ; then
echo "Failed: $PASSED/$TOTAL"
if [ $KNOWN_ERROR -eq 0 ] ; then
Expand Down

0 comments on commit 24d3a86

Please sign in to comment.