Skip to content

Commit

Permalink
fix RecoMET/METProducers/test/runtests.sh to stop the test if cmsDriv…
Browse files Browse the repository at this point in the history
…er command fails
  • Loading branch information
smuzaffar committed Nov 15, 2016
1 parent f8d0176 commit 13f524b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoMET/METProducers/test/runtests.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex

##____________________________________________________________________________||
function die { echo $1: status $2 ; exit $2; }
Expand All @@ -7,7 +7,7 @@ function die { echo $1: status $2 ; exit $2; }

# temporary: produce fastsim sample on the fly
# can be removed as soon as relval samples are available with the new fastsim rechits
cmsDriver.py TTbar_13TeV_TuneCUETP8M1_cfi --conditions auto:run2_mc --fast -n 1 --eventcontent FEVTDEBUGHLT -s GEN,SIM,RECOBEFMIX,DIGI:pdigi_valid,L1,L1Reco,RECO --beamspot NominalCollision2015 --era Run2_2016 --fileout ttbarForMetTests.root
cmsDriver.py TTbar_13TeV_TuneCUETP8M1_cfi --conditions auto:run2_mc --fast -n 1 --eventcontent FEVTDEBUGHLT -s GEN,SIM,RECOBEFMIX,DIGI:pdigi_valid,L1,L1Reco,RECO --beamspot NominalCollision2015 --era Run2_2016 --fileout ttbarForMetTests.root || die 'Failure running cmsDriver' $?
cmsRun ${LOCAL_TEST_DIR}/recoMET_pfMet_cfg.py || die 'Failure using recoMET_pfMet_cfg.py' $?
cmsRun ${LOCAL_TEST_DIR}/recoMET_caloMet_cfg.py || die 'Failure using recoMET_caloMet_cfg.py' $?
cmsRun ${LOCAL_TEST_DIR}/recoMET_tcMet_cfg.py || die 'Failure using recoMET_tcMet_cfg.py' $?
Expand Down

0 comments on commit 13f524b

Please sign in to comment.