Skip to content

Commit

Permalink
Merge pull request #40975 from smuzaffar/db-fix-unit-test
Browse files Browse the repository at this point in the history
[DB] Various fixes/improvements for unit test
  • Loading branch information
cmsbuild committed Mar 7, 2023
2 parents fa66dea + 3002f40 commit 35e42cf
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalADCToGeV_update_test.sh
@@ -1,5 +1,5 @@
#!/bin/sh
cmsRun ./src/CondTools/Ecal/python/updateADCToGeV_test.py
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/updateADCToGeV_test.py
ret=$?
conddb --db EcalADCToGeV.db list EcalADCToGeV_test
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalDAQ_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalDAQTowerStatus_online --destdb EcalDAQTowerStatus_online_O2OTEST.db --o2oTest
popconRun ./src/CondTools/Ecal/python/EcalDAQ_popcon.py -d sqlite_file:EcalDAQTowerStatus_online_O2OTEST.db -t EcalDAQTowerStatus_online -c
popconRun $CMSSW_BASE/src/CondTools/Ecal/python/EcalDAQ_popcon.py -d sqlite_file:EcalDAQTowerStatus_online_O2OTEST.db -t EcalDAQTowerStatus_online -c
ret=$?
conddb --db EcalDAQTowerStatus_online_O2OTEST.db list EcalDAQTowerStatus_online
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalDCS_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalDCSTowerStatus_online --destdb EcalDCSTowerStatus_online_O2OTEST.db --o2oTest
popconRun ./src/CondTools/Ecal/python/EcalDCS_popcon.py -d sqlite_file:EcalDCSTowerStatus_online_O2OTEST.db -t EcalDCSTowerStatus_online -c
popconRun $CMSSW_BASE/src/CondTools/Ecal/python/EcalDCS_popcon.py -d sqlite_file:EcalDCSTowerStatus_online_O2OTEST.db -t EcalDCSTowerStatus_online -c
ret=$?
conddb --db EcalDCSTowerStatus_online_O2OTEST.db list EcalDCSTowerStatus_online
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalIntercalibConstants_O2O_test.sh
Expand Up @@ -4,7 +4,7 @@ conddb --yes copy EcalIntercalibConstants_0T --destdb EcalIntercalibConstants_V1
conddb --yes copy EcalIntercalibConstants_3.8T_v2 --destdb EcalIntercalibConstants_V1_hlt_O2OTEST.db
lastRun=`conddb --db EcalIntercalibConstants_V1_hlt_O2OTEST.db list EcalIntercalibConstants_V1_hlt | tail -2 | head -1 | awk '{print $1}'`
conddb --yes copy runinfo_start_31X_hlt --destdb EcalIntercalibConstants_V1_hlt_O2OTEST.db -f $lastRun -t $lastRun
cmsRun ./src/CondTools/Ecal/python/EcalIntercalibConstantsPopConBTransitionAnalyzer_cfg.py runNumber=$lastRun destinationDatabase=sqlite_file:EcalIntercalibConstants_V1_hlt_O2OTEST.db destinationTag=EcalIntercalibConstants_V1_hlt tagForRunInfo=runinfo_start_31X_hlt tagForBOff=EcalIntercalibConstants_0T tagForBOn=EcalIntercalibConstants_3.8T_v2
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/EcalIntercalibConstantsPopConBTransitionAnalyzer_cfg.py runNumber=$lastRun destinationDatabase=sqlite_file:EcalIntercalibConstants_V1_hlt_O2OTEST.db destinationTag=EcalIntercalibConstants_V1_hlt tagForRunInfo=runinfo_start_31X_hlt tagForBOff=EcalIntercalibConstants_0T tagForBOn=EcalIntercalibConstants_3.8T_v2
ret=$?
conddb --db EcalIntercalibConstants_V1_hlt_O2OTEST.db list EcalIntercalibConstants_V1_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalIntercalib_update_test.sh
@@ -1,5 +1,5 @@
#!/bin/sh
cmsRun ./src/CondTools/Ecal/python/updateIntercali_test.py
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/updateIntercali_test.py
ret=$?
conddb --db EcalIntercalibConstants_test.db list EcalIntercalib_test
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalLaser_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalLaserAPDPNRatios_prompt_v2 --destdb EcalLaserAPDPNRatios_prompt_v2_O2OTEST.db --o2oTest
popconRun ./src/CondTools/Ecal/python/EcalLaser_prompt_popcon.py -d sqlite_file:EcalLaserAPDPNRatios_prompt_v2_O2OTEST.db -t EcalLaserAPDPNRatios_prompt_v2 -c
popconRun $CMSSW_BASE/src/CondTools/Ecal/python/EcalLaser_prompt_popcon.py -d sqlite_file:EcalLaserAPDPNRatios_prompt_v2_O2OTEST.db -t EcalLaserAPDPNRatios_prompt_v2 -c
ret=$?
conddb --db EcalLaserAPDPNRatios_prompt_v2_O2OTEST.db list EcalLaserAPDPNRatios_prompt_v2
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGBadStripStatus_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGStripStatus_v3_hlt --destdb EcalTPGStripStatus_v3_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyBadStrip_cfg.py destinationDatabase=sqlite_file:EcalTPGStripStatus_v3_hlt_O2OTEST.db destinationTag=EcalTPGStripStatus_v3_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyBadStrip_cfg.py destinationDatabase=sqlite_file:EcalTPGStripStatus_v3_hlt_O2OTEST.db destinationTag=EcalTPGStripStatus_v3_hlt
ret=$?
conddb --db EcalTPGStripStatus_v3_hlt_O2OTEST.db list EcalTPGStripStatus_v3_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGCrystalStatus_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGCrystalStatus_v2_hlt --destdb EcalTPGCrystalStatus_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyBadXT_cfg.py destinationDatabase=sqlite_file:EcalTPGCrystalStatus_v2_hlt_O2OTEST.db destinationTag=EcalTPGCrystalStatus_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyBadXT_cfg.py destinationDatabase=sqlite_file:EcalTPGCrystalStatus_v2_hlt_O2OTEST.db destinationTag=EcalTPGCrystalStatus_v2_hlt
ret=$?
conddb --db EcalTPGCrystalStatus_v2_hlt_O2OTEST.db list EcalTPGCrystalStatus_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGFineGrainEBGroup_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGFineGrainEBGroup_v2_hlt --destdb EcalTPGFineGrainEBGroup_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyFgrGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainEBGroup_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainEBGroup_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyFgrGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainEBGroup_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainEBGroup_v2_hlt
ret=$?
conddb --db EcalTPGFineGrainEBGroup_v2_hlt_O2OTEST.db list EcalTPGFineGrainEBGroup_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGFineGrainEBIdMap_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGFineGrainEBIdMap_v2_hlt --destdb EcalTPGFineGrainEBIdMap_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyFgrIdMap_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainEBIdMap_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainEBIdMap_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyFgrIdMap_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainEBIdMap_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainEBIdMap_v2_hlt
ret=$?
conddb --db EcalTPGFineGrainEBIdMap_v2_hlt_O2OTEST.db list EcalTPGFineGrainEBIdMap_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGFineGrainStripEE_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGFineGrainStripEE_v2_hlt --destdb EcalTPGFineGrainStripEE_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyLutGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainStripEE_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainStripEE_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyLutGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainStripEE_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainStripEE_v2_hlt
ret=$?
conddb --db EcalTPGFineGrainStripEE_v2_hlt_O2OTEST.db list EcalTPGFineGrainStripEE_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGFineGrainTowerEE_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGFineGrainTowerEE_v2_hlt --destdb EcalTPGFineGrainTowerEE_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyFgrTowerEE_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainTowerEE_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainTowerEE_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyFgrTowerEE_cfg.py destinationDatabase=sqlite_file:EcalTPGFineGrainTowerEE_v2_hlt_O2OTEST.db destinationTag=EcalTPGFineGrainTowerEE_v2_hlt
ret=$?
conddb --db EcalTPGFineGrainTowerEE_v2_hlt_O2OTEST.db list EcalTPGFineGrainTowerEE_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGLinearizationConst_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGLinearizationConst_v2_hlt --destdb EcalTPGLinearizationConst_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyLin_cfg.py destinationDatabase=sqlite_file:EcalTPGLinearizationConst_v2_hlt_O2OTEST.db destinationTag=EcalTPGLinearizationConst_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyLin_cfg.py destinationDatabase=sqlite_file:EcalTPGLinearizationConst_v2_hlt_O2OTEST.db destinationTag=EcalTPGLinearizationConst_v2_hlt
ret=$?
conddb --db EcalTPGLinearizationConst_v2_hlt_O2OTEST.db list EcalTPGLinearizationConst_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGLutGroup_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGLutGroup_v2_hlt --destdb EcalTPGLutGroup_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyLutGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGLutGroup_v2_hlt_O2OTEST.db destinationTag=EcalTPGLutGroup_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyLutGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGLutGroup_v2_hlt_O2OTEST.db destinationTag=EcalTPGLutGroup_v2_hlt
ret=$?
conddb --db EcalTPGLutGroup_v2_hlt_O2OTEST.db list EcalTPGLutGroup_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGLutIdMap_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGLutIdMap_v2_hlt --destdb EcalTPGLutIdMap_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyLutIdMap_cfg.py destinationDatabase=sqlite_file:EcalTPGLutIdMap_v2_hlt_O2OTEST.db destinationTag=EcalTPGLutIdMap_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyLutIdMap_cfg.py destinationDatabase=sqlite_file:EcalTPGLutIdMap_v2_hlt_O2OTEST.db destinationTag=EcalTPGLutIdMap_v2_hlt
ret=$?
conddb --db EcalTPGLutIdMap_v2_hlt_O2OTEST.db list EcalTPGLutIdMap_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGPedestals_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGPedestals_v2_hlt --destdb EcalTPGPedestals_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyPed_cfg.py destinationDatabase=sqlite_file:EcalTPGPedestals_v2_hlt_O2OTEST.db destinationTag=EcalTPGPedestals_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyPed_cfg.py destinationDatabase=sqlite_file:EcalTPGPedestals_v2_hlt_O2OTEST.db destinationTag=EcalTPGPedestals_v2_hlt
ret=$?
conddb --db EcalTPGPedestals_v2_hlt_O2OTEST.db list EcalTPGPedestals_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGPhysicsConst_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGPhysicsConst_v2_hlt --destdb EcalTPGPhysicsConst_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyPhysConst_cfg.py destinationDatabase=sqlite_file:EcalTPGPhysicsConst_v2_hlt_O2OTEST.db destinationTag=EcalTPGPhysicsConst_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyPhysConst_cfg.py destinationDatabase=sqlite_file:EcalTPGPhysicsConst_v2_hlt_O2OTEST.db destinationTag=EcalTPGPhysicsConst_v2_hlt
ret=$?
conddb --db EcalTPGPhysicsConst_v2_hlt_O2OTEST.db list EcalTPGPhysicsConst_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGSlidingWindow_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGSlidingWindow_v2_hlt --destdb EcalTPGSlidingWindow_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copySli_cfg.py destinationDatabase=sqlite_file:EcalTPGSlidingWindow_v2_hlt_O2OTEST.db destinationTag=EcalTPGSlidingWindow_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copySli_cfg.py destinationDatabase=sqlite_file:EcalTPGSlidingWindow_v2_hlt_O2OTEST.db destinationTag=EcalTPGSlidingWindow_v2_hlt
ret=$?
conddb --db EcalTPGSlidingWindow_v2_hlt_O2OTEST.db list EcalTPGSlidingWindow_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGSpike_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGSpike_v3_hlt --destdb EcalTPGSpike_v3_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copySpikeTh_cfg.py destinationDatabase=sqlite_file:EcalTPGSpike_v3_hlt_O2OTEST.db destinationTag=EcalTPGSpike_v3_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copySpikeTh_cfg.py destinationDatabase=sqlite_file:EcalTPGSpike_v3_hlt_O2OTEST.db destinationTag=EcalTPGSpike_v3_hlt
ret=$?
conddb --db EcalTPGSpike_v3_hlt_O2OTEST.db list EcalTPGSpike_v3_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGTowerStatus_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGTowerStatus_hlt --destdb EcalTPGTowerStatus_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyBadTT_cfg.py destinationDatabase=sqlite_file:EcalTPGTowerStatus_hlt_O2OTEST.db destinationTag=EcalTPGTowerStatus_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyBadTT_cfg.py destinationDatabase=sqlite_file:EcalTPGTowerStatus_hlt_O2OTEST.db destinationTag=EcalTPGTowerStatus_hlt
ret=$?
conddb --db EcalTPGTowerStatus_hlt_O2OTEST.db list EcalTPGTowerStatus_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGWeightGroup_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGWeightGroup_v2_hlt --destdb EcalTPGWeightGroup_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyWGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGWeightGroup_v2_hlt_O2OTEST.db destinationTag=EcalTPGWeightGroup_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyWGroup_cfg.py destinationDatabase=sqlite_file:EcalTPGWeightGroup_v2_hlt_O2OTEST.db destinationTag=EcalTPGWeightGroup_v2_hlt
ret=$?
conddb --db EcalTPGWeightGroup_v2_hlt_O2OTEST.db list EcalTPGWeightGroup_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPGWeightIdMap_O2O_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
conddb --yes copy EcalTPGWeightIdMap_v2_hlt --destdb EcalTPGWeightIdMap_v2_hlt_O2OTEST.db --o2oTest
cmsRun ./src/CondTools/Ecal/python/copyWIdMap_cfg.py destinationDatabase=sqlite_file:EcalTPGWeightIdMap_v2_hlt_O2OTEST.db destinationTag=EcalTPGWeightIdMap_v2_hlt
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/copyWIdMap_cfg.py destinationDatabase=sqlite_file:EcalTPGWeightIdMap_v2_hlt_O2OTEST.db destinationTag=EcalTPGWeightIdMap_v2_hlt
ret=$?
conddb --db EcalTPGWeightIdMap_v2_hlt_O2OTEST.db list EcalTPGWeightIdMap_v2_hlt
echo "return code is $ret"
Expand Down
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPG_updateOddWeightGroup_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh

cmsRun ./src/CondTools/Ecal/python/updateTPGOddWeightGroup.py output=EcalTPGOddWeightGroup_TEST.db input=./src/CondTools/Ecal/data/EcalTPGWeightGroup_perstrip_test.txt filetype=txt outputtag=unittest
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/updateTPGOddWeightGroup.py output=EcalTPGOddWeightGroup_TEST.db input=$CMSSW_BASE/src/CondTools/Ecal/data/EcalTPGWeightGroup_perstrip_test.txt filetype=txt outputtag=unittest
ret=$?
echo "return code is $ret"
exit $ret
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPG_updateOddWeightIdMap_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh

cmsRun ./src/CondTools/Ecal/python/updateTPGOddWeightIdMap.py output=EcalTPGOddWeightIdMap_TEST.db input=./src/CondTools/Ecal/data/EcalTPGOddWeightIdMap_perstrip_test.txt filetype=txt outputtag=unittest
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/updateTPGOddWeightIdMap.py output=EcalTPGOddWeightIdMap_TEST.db input=$CMSSW_BASE/src/CondTools/Ecal/data/EcalTPGOddWeightIdMap_perstrip_test.txt filetype=txt outputtag=unittest
ret=$?
echo "return code is $ret"
exit $ret
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPG_updateWeightGroup_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh

cmsRun ./src/CondTools/Ecal/python/updateTPGWeightGroup.py output=EcalTPGWeightGroup_TEST.db input=./src/CondTools/Ecal/data/EcalTPGWeightGroup_perstrip_test.txt filetype=txt outputtag=unittest
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/updateTPGWeightGroup.py output=EcalTPGWeightGroup_TEST.db input=$CMSSW_BASE/src/CondTools/Ecal/data/EcalTPGWeightGroup_perstrip_test.txt filetype=txt outputtag=unittest
ret=$?
echo "return code is $ret"
exit $ret
2 changes: 1 addition & 1 deletion CondTools/Ecal/test/EcalTPG_updateWeightIdMap_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh

cmsRun ./src/CondTools/Ecal/python/updateTPGWeightIdMap.py output=EcalTPGWeightIdMap_TEST.db input=./src/CondTools/Ecal/data/EcalTPGWeightIdMap_perstrip_test.txt filetype=txt outputtag=unittest
cmsRun $CMSSW_BASE/src/CondTools/Ecal/python/updateTPGWeightIdMap.py output=EcalTPGWeightIdMap_TEST.db input=$CMSSW_BASE/src/CondTools/Ecal/data/EcalTPGWeightIdMap_perstrip_test.txt filetype=txt outputtag=unittest
ret=$?
echo "return code is $ret"
exit $ret
4 changes: 2 additions & 2 deletions CondTools/RunInfo/test/RunInfoStart_O2O_test.sh
Expand Up @@ -2,8 +2,8 @@
conddb --yes copy runinfo_start_31X_hlt --destdb runinfo_O2O_test.db --o2oTest
lastRun=`conddb listRuns | tail -2 | awk '{print $1}'`
echo "last run = $lastRun"
cmsRun ./src/CondTools/RunInfo/python/RunInfoPopConAnalyzer.py runNumber=$lastRun destinationConnection=sqlite_file:runinfo_O2O_test.db tag=runinfo_start_31X_hlt
cmsRun $CMSSW_BASE/src/CondTools/RunInfo/python/RunInfoPopConAnalyzer.py runNumber=$lastRun destinationConnection=sqlite_file:runinfo_O2O_test.db tag=runinfo_start_31X_hlt
ret=$?
conddb --db runinfo_O2O_test.db list runinfo_start_31X_hlt
echo "return code is $ret"
exit $ret
exit $ret
4 changes: 2 additions & 2 deletions CondTools/RunInfo/test/test_lhcInfo.sh
@@ -1,11 +1,11 @@
#!/bin/sh

LOCAL_TEST_DIR=src/CondTools/RunInfo/test
LOCAL_TEST_DIR=$CMSSW_BASE/src/CondTools/RunInfo/test

function die { echo Failure $1: status $2 ; exit $2 ; }

cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerFillWriter_cfg.py || die "cmsRun LHCInfoPerFillWriter_cfg.py" $?
cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerFillAnalyzer_cfg.py || die "cmsRun LHCInfoPerFillAnalyzer_cfg.py" $?

cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerLSWriter_cfg.py || die "cmsRun LHCInfoPerLSWriter_cfg.py" $?
cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerLSAnalyzer_cfg.py || die "cmsRun LHCInfoPerLSAnalyzer_cfg.py" $?
cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerLSAnalyzer_cfg.py || die "cmsRun LHCInfoPerLSAnalyzer_cfg.py" $?
4 changes: 2 additions & 2 deletions CondTools/RunInfo/test/test_runinfo.sh
@@ -1,9 +1,9 @@
#!/bin/sh

LOCAL_TEST_DIR=src/CondTools/RunInfo/test
LOCAL_TEST_DIR=$CMSSW_BASE/src/CondTools/RunInfo/test

function die { echo Failure $1: status $2 ; exit $2 ; }

cmsRun ${LOCAL_TEST_DIR}/test_runinfo_cfg.py | grep '\(run number\)\|\(average current\)' > test_runinfo.run_log || die "cmsRun RefTest_cfg.py" $?
diff test_runinfo.run_log ${LOCAL_TEST_DIR}/test_runinfo_result.log || die 'incorrect output using test_runinfo_cfg.py' $?
diff test_runinfo.run_log ${LOCAL_TEST_DIR}/test_runinfo_result.log || die 'incorrect output using test_runinfo_cfg.py' $?
rm test_runinfo.run_log

0 comments on commit 35e42cf

Please sign in to comment.