Commit 1379e46c authored by Stefano Belforte's avatar Stefano Belforte
Browse files

run this test w/o lcgadmin role

parent d2542488
......@@ -28,10 +28,21 @@ else
./LfnToPfnFromTfc.py $nodeName $testLFN $pfnFilename | tee $SAME_SENSOR_WORK/nodes/$nodeName/LfnToPfnFromTfc.out
EXIT_STATUS=$?
fi
echo
echo " temporarly remove lcgadim role"
tproxy=`mktemp`
savedProxy=$X509_USER_PROXY
voms-proxy-init -vo cms -cer $X509_USER_PROXY -out $tproxy
export X509_USER_PROXY=$tproxy
voms-proxy-info -all
echo "</pre>"
if [ $EXIT_STATUS -ne 0 ]; then
echo "ERROR: LfnToPfnFromTfc.py script failed: $EXIT_STATUS"
export X509_USER_PROXY=$savedProxy
exit $SAME_ERROR
else
......@@ -69,6 +80,7 @@ else
echo "<p>"
echo "TFC not found or rule for SRM non found in TFC"
echo "</p>"
export X509_USER_PROXY=$savedProxy
exit $SAME_ERROR
fi
......@@ -85,6 +97,7 @@ if [ ! -f $SAME_SENSOR_WORK/nodes/$nodeName/endpoint.txt ] ; then
echo "<p>"
echo "Full SRMv2 endpoint not provided"
echo "</p>"
export X509_USER_PROXY=$savedProxy
exit $SAME_WARNING
else
echo "Testing SRMv2 endpoint "
......@@ -188,6 +201,8 @@ else
echo 1 > $SAME_SENSOR_WORK/nodes/$nodeName/SRM-user.error
fi
export X509_USER_PROXY=$savedProxy
if [ -f $SAME_SENSOR_WORK/nodes/$nodeName/SRM-user.error ] ; then
# exit $SAME_ERROR
exit $SAME_WARNING
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment