Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:34

0001 #!/bin/sh
0002 function die { echo $1: status $2 ; exit $2; }
0003 
0004 # set up jobdir
0005 # O2O runs under $JOBDIR/{delay}hourDelay
0006 export JOBDIR=`pwd`
0007 outputdir="$JOBDIR/1hourDelay"
0008 if [ -d "$outputdir" ]; then
0009         rm -r $outputdir
0010 fi
0011 mkdir -p $outputdir
0012 
0013 # copy the second to last IOV
0014 conddb --yes copy SiStripDetVOff_1hourDelay_v1_Validation --destdb $outputdir/SiStripDetVOff_1hourDelay_O2OTEST.db --o2oTest
0015 # run a test DCS O2O
0016 SiStripDCSPopCon.py --delay 1 --destTags SiStripDetVOff_1hourDelay_v1_Validation --destDb None --inputTag SiStripDetVOff_1hourDelay_v1_Validation --sourceDb oracle://cms_omds_adg/CMS_TRK_R --condDbRead sqlite:///$outputdir/SiStripDetVOff_1hourDelay_O2OTEST.db --no-upload || die "Failure running SiStripDCSPopCon.py" $?
0017 # check if new IOV is produced
0018 conddb --db $outputdir/SiStripDetVOff_1.db list SiStripDetVOff_1hourDelay_v1_Validation || die "No new IOV produced" $?