Commit 537ec714 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

Checks the output of source cmsset_default.sh for errors

parent 2578ca6b
......@@ -13,16 +13,25 @@ else
echo "ERROR: Neither VO_CMS_SW_DIR nor OSG_APP defined"
exit $SAME_ERROR
fi
tmpfile=`mktemp`
echo "<pre>"
source $SW_DIR/cmsset_default.sh
source $SW_DIR/cmsset_default.sh > $tmpfile 2>&1
result=$?
cat $tmpfile
echo "</pre>"
grep 'Your shell is not able to find' $tmpfile > /dev/null
result2=$?
rm -f $tmpfile
if [ $result != 0 ]
then
echo "ERROR: $SW_DIR/cmsset_default.sh non existent or non readable"
exit $SAME_ERROR
fi
if [ $result2 == 0 ]
then
echo "ERROR: $SW_DIR/cmsset_default.sh failed"
exit $SAME_ERROR
fi
# Execute main test script
echo "<h3>Executing the squid test</h3>"
......
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