File indexing completed on 2024-04-06 12:29:06
0001
0002
0003 function die { echo $1: status $2 ; exit $2; }
0004
0005 echo "TESTING BeamSpot From DB Read / Write codes ..."
0006
0007
0008 if test -f "EarlyCollision.db"; then
0009 rm -fr EarlyCollision.db
0010 fi
0011
0012
0013 cmsRun ${SCRAM_TEST_PATH}/write2DB.py inputFile=${SCRAM_TEST_PATH}/EarlyCollision.txt || die "Failure running write2DB.py" $?
0014
0015 cmsRun ${SCRAM_TEST_PATH}/readDB.py unitTest=True inputFile=${PWD}/EarlyCollision.db || die "Failure running readDB.py" $?