Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
f3e441ce
Commit
f3e441ce
authored
Jun 23, 2009
by
Stefano Belforte
Browse files
test new CE-cms-basic
parent
44890b98
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/testjob/tests/CE-cms-dummy
View file @
f3e441ce
...
...
@@ -306,7 +306,24 @@ if [ $rc == $SAME_OK ] || [ $rc == $SAME_INFO ] ; then
if
[
$?
==
1
]
;
then
asCvs
=
0
;
fi
echo
"<br>"
if
[
$asCvs
==
0
]
;
then
if
[
$localTFCfileAgeInHours
-gt
72
]
;
then
cvsMarkupUrl
=
"
\"
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/SITECONF/
${
siteName
}
/PhEDEx/
${
TFCfileName
}
?view=markup
\"
"
TfcFileMarkup
=
`
mktemp
/tmp/TFC-from-CVS-Markup.xml.XXX
`
echo
"Fetch CVS Markup copy of TFC from
$cvsMarkupUrl
<br>"
./fetch-from-web
$cvsMarkupUrl
$TfcFileMarkup
rc
=
$?
echo
"rc =
$rc
<br>"
[
$rc
==
$SAME_INFO
]
&&
info
=
1
[
$rc
==
$SAME_WARNING
]
&&
warning
=
1
cvsFileDate
=
`
grep
"<em>"
$TfcFileMarkup
|head
-1
|awk
-F
'<em>|</em>'
'{print $2 }'
`
let
seconds
=
`
date
+%s
`
-
`
date
+%s
-d
"
$cvsFileDate
"
`
let
cvsFileAgeInHours
=
$seconds
/3600
echo
"<pre>"
echo
CVS version of Local Configuration file is
${
cvsFileAgeInHours
}
hours old
echo
"</pre>"
if
[
$localTFCfileAgeInHours
-gt
72
]
&&
[
$cvsFileAgeInHours
-gt
72
]
;
then
# if [ $localTFCfileAgeInHours -gt 72 ] ; then
error
=
1
echo
"<strong>ERROR: local Trivial Catalog File file differ from CVS</strong>"
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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