Commit 678c2bae authored by Stefano Belforte's avatar Stefano Belforte
Browse files

exit with NOTICE not ERROR if fetch-from-web fails

parent fbc10aec
......@@ -316,23 +316,29 @@ PublishedTagsURL="http://cmsdoc.cern.ch/cms/LCG/SiteComm/published-tags/$ceHostW
echo "<p>Retrieve list of published tags from <a href=\"$PublishedTagsURL\">$PublishedTagsURL</a><br>"
./fetch-from-web $PublishedTagsURL publ_tag.txt
rc=$?
echo "rc = " $rc
echo "rc from fetch-from-web = " $rc
[ $rc == $SAME_INFO ] && info=1
[ $rc == $SAME_WARNING ] && warning=1
[ $rc == $SAME_NOTICE ] && note=1
[ $rc == $SAME_NOTICE ] && retrieve_published_list_fail=1
echo "List of published tags<br><pre>"
cat publ_tag.txt
echo "</pre>"
len=`cat publ_tag.txt | wc --chars`
if [ $len -lt 10 ]
if [ $retrieve_published_list_fail == 0 ]
then
len=`cat publ_tag.txt | wc --chars`
if [ $len -lt 10 ]
then
empty_tag_list=1
echo "<p><br><strong>"
echo "Suspiciously small (empty ?) tag list returned by lcg-info"
echo "</p></strong><pre>"
ls -lh publ_tag.txt
echo "</pre>"
empty_tag_list=1
echo "<p><br><strong>"
echo "Suspiciously small (empty ?) tag list returned by lcg-info"
echo "</p></strong><pre>"
ls -lh publ_tag.txt
echo "</pre>"
retrieve_published_list_fail=1
note=1
fi
fi
if [ $retrieve_published_list_fail == 0 ]
......@@ -451,8 +457,8 @@ echo '<h1><a name="summary"> Test Summary</a></h1><p>'
if [ $retrieve_published_list_fail == 1 ]
then
echo "<p>WARNING: Fail to retrieve list of published tags from cmsdoc</p>"
info=1
echo "<p>NOTICE: Fail to retrieve list of published tags from cmsdoc</p>"
note=1
fi
if [ $missing_production_release == 1 ]
......
Supports Markdown
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