From 028b31a97814f6b226bc8ddf2a2f11f7928d4e73 Mon Sep 17 00:00:00 2001 From: Marcel Andre Schneider Date: Wed, 11 Dec 2019 19:58:40 +0100 Subject: [PATCH] Some sanity checks. --- DQMServices/Demo/test/runtests.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/DQMServices/Demo/test/runtests.sh b/DQMServices/Demo/test/runtests.sh index 0879f7add76bd..74866693cb551 100755 --- a/DQMServices/Demo/test/runtests.sh +++ b/DQMServices/Demo/test/runtests.sh @@ -80,13 +80,22 @@ cmsRun run_analyzers_cfg.py numberEventsInRun=300 numberEventsInLuminosityBlock= # Note that we pass the files in order here. In the future, this should be independent of the order of input files. cmsRun run_harvesters_cfg.py inputFiles=part1.root inputFiles=part2.root inputFiles=part3.root legacyoutput=True rootlist () -{ - python -c ' - import uproot - for k in uproot.open("'"$1"'").allkeys(): print k' +{ python -c ' +import uproot +for k in uproot.open("'"$1"'").allkeys(): print k' } [ 2 = $(rootlist DQM_V0001_R000000001__Harvesting__DQMTests__DQMIO.root | grep -c 's=beginRun(1) endLumi(1,1) endLumi(1,2) endLumi(1,3) endRun(1) endJob() ') ] +# 11. Sanity checks. +# this will mess up some of the files created earlier, disable for debugging. +cmsRun run_analyzers_cfg.py outfile=empty.root nEvents=0 +cmsRun run_analyzers_cfg.py outfile=empty.root howmany=0 +cmsRun run_analyzers_cfg.py outfile=empty.root howmany=0 legacyoutput=True +cmsRun run_analyzers_cfg.py outfile=empty.root howmany=0 protobufoutput=True + + + +