Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
678c2bae
Commit
678c2bae
authored
Feb 16, 2010
by
Stefano Belforte
Browse files
exit with NOTICE not ERROR if fetch-from-web fails
parent
fbc10aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/testjob/tests/CE-cms-swinst
View file @
678c2bae
...
...
@@ -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
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment