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
410bb11a
Commit
410bb11a
authored
Sep 10, 2012
by
Andrea Sciaba
Browse files
Using new OSG SW discovery and fixed bug making the test always OK
parent
dd70400d
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/MonteCarlo/tests/CE-cms-mc
View file @
410bb11a
...
...
@@ -15,13 +15,26 @@ echo "</pre>"
# Source the CMS environment
echo
"<h3>Sourcing the CMS environment</h3>"
export
SCRAM_ARCH
=
slc5_amd64_gcc462
if
[
-n
"
$OSG_APP
"
]
;
then
echo
"<p>This is an OSG site</p>"
SW_DIR
=
$OSG_APP
/cmssoft/cms
source
$OSG_GRID
/setup.sh
result
=
$?
if
[
-n
"
$OSG_GRID
"
]
;
then
[
-f
$OSG_GRID
/setup.sh
]
&&
source
$OSG_GRID
/setup.sh
echo
"<p>OSG Middleware</p>"
if
[
-d
$OSG_APP
/cmssoft/cms
]
;
then
SW_DIR
=
$OSG_APP
/cmssoft/cms
echo
"<p>Checking variable:
\$
OSG_APP/cmssoft/cms=
$OSG_APP
/cmssoft/cms</p>"
elif
[
-d
$CVMFS
/cms.cern.ch
]
;
then
SW_DIR
=
$CVMFS
/cms.cern.ch
echo
"<p>Checking variable:
\$
CVMFS/cms.cern.ch=
$CVMFS
/cms.cern.ch</p>"
elif
[
-d
/cvmfs/cms.cern.ch
]
;
then
SW_DIR
=
/cvmfs/cms.cern.ch
echo
"<p>Checking fallback location: /cvmfs/cms.cern.ch</p>"
else
echo
"<p>"
echo
"Cannot find CMS software area."
echo
"</p>"
exit
$SAME_ERROR
fi
elif
[
-n
"
$VO_CMS_SW_DIR
"
]
;
then
echo
"<p>
This is an LCG sit
e</p>"
echo
"<p>
gLite Middlewar
e</p>"
SW_DIR
=
$VO_CMS_SW_DIR
result
=
$?
else
...
...
@@ -81,10 +94,11 @@ if [ $? -ne 0 ]; then
else
echo
"<pre>"
chmod
u+x RuntimeSAMStageOut.py
./RuntimeSAMStageOut.py
|
sed
-e
's/&/&/g'
|
sed
-e
's/</\</g'
|
sed
-e
's/>/\>/g'
2>&1
./RuntimeSAMStageOut.py
>
RuntimeSAMStageOut.out
2>&1
EXIT_STATUS
=
$?
sed
-e
's/&/&/g'
RuntimeSAMStageOut.out |
sed
-e
's/</\</g'
|
sed
-e
's/>/\>/g'
echo
"</pre>"
fi
echo
"</pre>"
if
[
$EXIT_STATUS
-ne
0
-a
$EXIT_STATUS
-ne
4
]
;
then
echo
"<p>ERROR: Stage Out Test failed:
$EXIT_STATUS
</p>"
...
...
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