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
67147f35
Commit
67147f35
authored
Aug 22, 2012
by
Andrea Sciaba
Browse files
Upgraded to WMCore
parent
177fcd0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
SiteTests/MonteCarlo/cms-MC-test/RuntimeSAMStageOut.py
View file @
67147f35
...
...
@@ -11,11 +11,12 @@ import time
import
os
import
sys
from
ProdCommon.FwkJobRep
.SiteLocalConfig
import
loadSiteLocalConfig
from
WMCore.Storage
.SiteLocalConfig
import
loadSiteLocalConfig
from
WMCore.Storage.Registry
import
retrieveStageOutImpl
from
StageOut.Registry
import
retrieveStageOutImpl
import
StageOut.Impl
import
WMCore.Storage.Backends
import
WMCore.Storage.Plugins
class
StageOutDiagnostic
:
"""
...
...
SiteTests/MonteCarlo/tests/CE-cms-mc
View file @
67147f35
...
...
@@ -14,7 +14,7 @@ echo "</pre>"
# Source the CMS environment
echo
"<h3>Sourcing the CMS environment</h3>"
export
SCRAM_ARCH
=
slc
4_ia32
_gcc
345
export
SCRAM_ARCH
=
slc
5_amd64
_gcc
462
if
[
-n
"
$OSG_APP
"
]
;
then
echo
"<p>This is an OSG site</p>"
SW_DIR
=
$OSG_APP
/cmssoft/cms
...
...
@@ -38,7 +38,30 @@ if [ $result != 0 ]
exit
$SAME_ERROR
fi
export
PYTHONPATH
=
$SAME_SENSOR_HOME
/cms-MC-test:
$PYTHONPATH
echo
"WMAgent thinks it found the correct CMSSW setup script"
if
[
-e
$VO_CMS_SW_DIR
/COMP/slc5_amd64_gcc434/external/python/2.6.4/etc/profile.d/init.sh
]
then
.
$VO_CMS_SW_DIR
/COMP/slc5_amd64_gcc434/external/python/2.6.4/etc/profile.d/init.sh
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$VO_CMS_SW_DIR
/COMP/slc5_amd64_gcc434/external/openssl/0.9.7m/lib:
$VO_CMS_SW_DIR
/COMP/slc5_amd64_gcc434/external/bz2lib/1.0.5/lib
elif
[
-e
$OSG_APP
/cmssoft/cms/COMP/slc5_amd64_gcc434/external/python/2.6.4/etc/profile.d/init.sh
]
then
.
$OSG_APP
/cmssoft/cms/COMP/slc5_amd64_gcc434/external/python/2.6.4/etc/profile.d/init.sh
export
LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH
:
$OSG_APP
/cmssoft/cms/COMP/slc5_amd64_gcc434/external/openssl/0.9.7m/lib:
$OSG_APP
/cmssoft/cms/COMP/slc5_amd64_gcc434/external/bz2lib/1.0.5/lib
fi
command
-v
python2.6
>
/dev/null
rc
=
$?
if
[[
$rc
!=
0
]]
then
echo
"WMAgent Error: Python2.6 isn't available on this worker node."
>
&2
echo
"WMAgent Error: WMCore/WMAgent REQUIRES python2.6"
>
&2
exit
3
else
echo
"WMAgent found python2.6 at.."
echo
`
which python2.6
`
fi
export
PYTHONPATH
=
$SAME_SENSOR_HOME
/cms-MC-test/lib/python2.6/site-packages:
$PYTHONPATH
echo
"<h3>Checking PYTHONPATH</h3>"
echo
"<pre>"
...
...
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