From 3002f40aa251f87f3a26adc6caa8f716bc19c35b Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Tue, 7 Mar 2023 08:22:28 +0100 Subject: [PATCH] [DB] Various fixes/improvements for unit test --- CondTools/Ecal/test/EcalADCToGeV_update_test.sh | 2 +- CondTools/Ecal/test/EcalDAQ_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalDCS_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalIntercalibConstants_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalIntercalib_update_test.sh | 2 +- CondTools/Ecal/test/EcalLaser_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGBadStripStatus_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGCrystalStatus_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGFineGrainEBGroup_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGFineGrainEBIdMap_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGFineGrainStripEE_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGFineGrainTowerEE_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGLinearizationConst_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGLutGroup_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGLutIdMap_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGPedestals_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGPhysicsConst_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGSlidingWindow_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGSpike_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGTowerStatus_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGWeightGroup_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPGWeightIdMap_O2O_test.sh | 2 +- CondTools/Ecal/test/EcalTPG_updateOddWeightGroup_test.sh | 2 +- CondTools/Ecal/test/EcalTPG_updateOddWeightIdMap_test.sh | 2 +- CondTools/Ecal/test/EcalTPG_updateWeightGroup_test.sh | 2 +- CondTools/Ecal/test/EcalTPG_updateWeightIdMap_test.sh | 2 +- CondTools/RunInfo/test/RunInfoStart_O2O_test.sh | 4 ++-- CondTools/RunInfo/test/test_lhcInfo.sh | 4 ++-- CondTools/RunInfo/test/test_runinfo.sh | 4 ++-- 29 files changed, 32 insertions(+), 32 deletions(-) diff --git a/CondTools/Ecal/test/EcalADCToGeV_update_test.sh b/CondTools/Ecal/test/EcalADCToGeV_update_test.sh index 96846e26b2b53..9f9a8af9c9a41 100755 --- a/CondTools/Ecal/test/EcalADCToGeV_update_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalDAQ_O2O_test.sh b/CondTools/Ecal/test/EcalDAQ_O2O_test.sh index a714974fb4b3b..60f68c2195099 100755 --- a/CondTools/Ecal/test/EcalDAQ_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalDCS_O2O_test.sh b/CondTools/Ecal/test/EcalDCS_O2O_test.sh index 6d59a412081f3..567898f5ae6e7 100755 --- a/CondTools/Ecal/test/EcalDCS_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalIntercalibConstants_O2O_test.sh b/CondTools/Ecal/test/EcalIntercalibConstants_O2O_test.sh index 9e56eae261ada..cb621497fbca9 100755 --- a/CondTools/Ecal/test/EcalIntercalibConstants_O2O_test.sh +++ b/CondTools/Ecal/test/EcalIntercalibConstants_O2O_test.sh @@ -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" diff --git a/CondTools/Ecal/test/EcalIntercalib_update_test.sh b/CondTools/Ecal/test/EcalIntercalib_update_test.sh index 3e49a94f6a93d..3796a25ddcdf5 100755 --- a/CondTools/Ecal/test/EcalIntercalib_update_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalLaser_O2O_test.sh b/CondTools/Ecal/test/EcalLaser_O2O_test.sh index 4586d8b9cce57..e3d43fe4bdb56 100755 --- a/CondTools/Ecal/test/EcalLaser_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGBadStripStatus_O2O_test.sh b/CondTools/Ecal/test/EcalTPGBadStripStatus_O2O_test.sh index 6d86d2762e99b..97375b82fbc11 100755 --- a/CondTools/Ecal/test/EcalTPGBadStripStatus_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGCrystalStatus_O2O_test.sh b/CondTools/Ecal/test/EcalTPGCrystalStatus_O2O_test.sh index 4e94da5c469c2..d873142539f97 100755 --- a/CondTools/Ecal/test/EcalTPGCrystalStatus_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGFineGrainEBGroup_O2O_test.sh b/CondTools/Ecal/test/EcalTPGFineGrainEBGroup_O2O_test.sh index 5cd5a35c3bcdb..a5814b101d393 100755 --- a/CondTools/Ecal/test/EcalTPGFineGrainEBGroup_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGFineGrainEBIdMap_O2O_test.sh b/CondTools/Ecal/test/EcalTPGFineGrainEBIdMap_O2O_test.sh index 26789db161b25..6902052261279 100755 --- a/CondTools/Ecal/test/EcalTPGFineGrainEBIdMap_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGFineGrainStripEE_O2O_test.sh b/CondTools/Ecal/test/EcalTPGFineGrainStripEE_O2O_test.sh index 78cb3954bae76..c81199552cdf1 100755 --- a/CondTools/Ecal/test/EcalTPGFineGrainStripEE_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGFineGrainTowerEE_O2O_test.sh b/CondTools/Ecal/test/EcalTPGFineGrainTowerEE_O2O_test.sh index b96f1cdf27e27..5598709571cb0 100755 --- a/CondTools/Ecal/test/EcalTPGFineGrainTowerEE_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGLinearizationConst_O2O_test.sh b/CondTools/Ecal/test/EcalTPGLinearizationConst_O2O_test.sh index 2ae01ea827fa6..bf3153399e744 100755 --- a/CondTools/Ecal/test/EcalTPGLinearizationConst_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGLutGroup_O2O_test.sh b/CondTools/Ecal/test/EcalTPGLutGroup_O2O_test.sh index eb0d64e2f1c7b..1498025343eb0 100755 --- a/CondTools/Ecal/test/EcalTPGLutGroup_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGLutIdMap_O2O_test.sh b/CondTools/Ecal/test/EcalTPGLutIdMap_O2O_test.sh index c75185eba7ada..8470d0a99deb3 100755 --- a/CondTools/Ecal/test/EcalTPGLutIdMap_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGPedestals_O2O_test.sh b/CondTools/Ecal/test/EcalTPGPedestals_O2O_test.sh index 5ee58dc682346..659ec09c6c385 100755 --- a/CondTools/Ecal/test/EcalTPGPedestals_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGPhysicsConst_O2O_test.sh b/CondTools/Ecal/test/EcalTPGPhysicsConst_O2O_test.sh index 2e6215f502155..060ce951be49e 100755 --- a/CondTools/Ecal/test/EcalTPGPhysicsConst_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGSlidingWindow_O2O_test.sh b/CondTools/Ecal/test/EcalTPGSlidingWindow_O2O_test.sh index a388798ef51b3..154ac5b376ca0 100755 --- a/CondTools/Ecal/test/EcalTPGSlidingWindow_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGSpike_O2O_test.sh b/CondTools/Ecal/test/EcalTPGSpike_O2O_test.sh index 803ed5146fd52..835f6d9c688c3 100755 --- a/CondTools/Ecal/test/EcalTPGSpike_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGTowerStatus_O2O_test.sh b/CondTools/Ecal/test/EcalTPGTowerStatus_O2O_test.sh index 306e7cefbdbc3..7a76bbd211a91 100755 --- a/CondTools/Ecal/test/EcalTPGTowerStatus_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGWeightGroup_O2O_test.sh b/CondTools/Ecal/test/EcalTPGWeightGroup_O2O_test.sh index 3ef600d479f51..0c6028a4d0896 100755 --- a/CondTools/Ecal/test/EcalTPGWeightGroup_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPGWeightIdMap_O2O_test.sh b/CondTools/Ecal/test/EcalTPGWeightIdMap_O2O_test.sh index 5c9e8bd5879af..7389337d3cabf 100755 --- a/CondTools/Ecal/test/EcalTPGWeightIdMap_O2O_test.sh +++ b/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" diff --git a/CondTools/Ecal/test/EcalTPG_updateOddWeightGroup_test.sh b/CondTools/Ecal/test/EcalTPG_updateOddWeightGroup_test.sh index ea166a171997e..eeff19d241f68 100755 --- a/CondTools/Ecal/test/EcalTPG_updateOddWeightGroup_test.sh +++ b/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 diff --git a/CondTools/Ecal/test/EcalTPG_updateOddWeightIdMap_test.sh b/CondTools/Ecal/test/EcalTPG_updateOddWeightIdMap_test.sh index 15bdba9822e26..1d5d2c5c74a8c 100755 --- a/CondTools/Ecal/test/EcalTPG_updateOddWeightIdMap_test.sh +++ b/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 diff --git a/CondTools/Ecal/test/EcalTPG_updateWeightGroup_test.sh b/CondTools/Ecal/test/EcalTPG_updateWeightGroup_test.sh index f8e9b7f320aec..9d87978999332 100755 --- a/CondTools/Ecal/test/EcalTPG_updateWeightGroup_test.sh +++ b/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 diff --git a/CondTools/Ecal/test/EcalTPG_updateWeightIdMap_test.sh b/CondTools/Ecal/test/EcalTPG_updateWeightIdMap_test.sh index 398f72fa2dc15..51f5c357cea8c 100755 --- a/CondTools/Ecal/test/EcalTPG_updateWeightIdMap_test.sh +++ b/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 diff --git a/CondTools/RunInfo/test/RunInfoStart_O2O_test.sh b/CondTools/RunInfo/test/RunInfoStart_O2O_test.sh index 5260a81964b88..5b495a18c4794 100755 --- a/CondTools/RunInfo/test/RunInfoStart_O2O_test.sh +++ b/CondTools/RunInfo/test/RunInfoStart_O2O_test.sh @@ -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 \ No newline at end of file +exit $ret diff --git a/CondTools/RunInfo/test/test_lhcInfo.sh b/CondTools/RunInfo/test/test_lhcInfo.sh index 8fa8ab36753dd..4ebc07619f54a 100755 --- a/CondTools/RunInfo/test/test_lhcInfo.sh +++ b/CondTools/RunInfo/test/test_lhcInfo.sh @@ -1,6 +1,6 @@ #!/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 ; } @@ -8,4 +8,4 @@ cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerFillWriter_cfg.py || die "cmsRun LHCInfoPerFi 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" $? \ No newline at end of file +cmsRun ${LOCAL_TEST_DIR}/LHCInfoPerLSAnalyzer_cfg.py || die "cmsRun LHCInfoPerLSAnalyzer_cfg.py" $? diff --git a/CondTools/RunInfo/test/test_runinfo.sh b/CondTools/RunInfo/test/test_runinfo.sh index 6a37107786f25..2947c983dddb9 100755 --- a/CondTools/RunInfo/test/test_runinfo.sh +++ b/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