Commit 2b628be8 authored by Andrea Sciaba's avatar Andrea Sciaba
Browse files

First version

parent 81efea8f
#!/bin/bash
echo "<h2>Stage out test for the Monte Carlo production</h2>"
# Source the CMS environment
echo "<h3>Sourcing the CMS environment</h3>"
echo "<pre>"
source $VO_CMS_SW_DIR/cmsset_default.sh
result=$?
echo "</pre>"
if [ $result != 0 ]
then
echo "ERROR: $VO_CMS_SW_DIR/cmsset_default.sh non existent or non readable"
exit $SAME_ERROR
fi
export PYTHONPATH=$SAME_SENSOR_HOME/cms-MC-test:$PYTHONPATH
echo "<h3>Checking PYTHONPATH</h3>"
echo "<pre>"
echo "PYTHONPATH=$PYTHONPATH"
echo "</pre>"
echo "<h3>Invoking site test</h3>"
echo "<pre>"
cd $SAME_SENSOR_HOME/cms-MC-test
chmod +x RuntimeSAMStageOut.py
./RuntimeSAMStageOut.py
EXIT_STATUS=$?
echo "</pre>"
if [ $EXIT_STATUS -ne 0 ]; then
echo "ERROR: Stage Out Test failed: $EXIT_STATUS"
exit $SAME_ERROR
else
echo "Stage Out Test successful"
exit $SAME_OK
fi
testName: CE-cms-mc
testTitle: Monte Carlo
testAbbr: mc
testHelp: none
Markdown is supported
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