Skip to content

Commit cca126b

Browse files
committed
Fix IndexError in the DQM unit test for TH2Poly
1 parent f750a33 commit cca126b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

DQMServices/Components/scripts/dqmiolistmes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
"TH2Fs",
4545
"TH2Ss",
4646
"TH2Ds",
47+
"TH2Polys",
4748
"TH3Fs",
4849
"TProfiles",
4950
"TProfile2Ds",
5051
"TH1Is",
51-
"TH2Is",
52-
"TH2Polys"
52+
"TH2Is"
5353
]
5454
trees = [f[name]["FullName"].array() for name in treenames]
5555

DQMServices/Demo/test/runtests.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,10 @@ cmsRun ${SCRAM_TEST_PATH}/run_harvesters_cfg.py inputFiles=part1.root inputFiles
127127
[ 2 = $(rootlist DQM_V0001_R000000001__Harvesting__DQMTests__DQMIO.root | grep -c '<runsummary>s=beginRun(1) endLumi(1,1) endLumi(1,2) endLumi(1,3) endRun(1) </runsummary>') ]
128128

129129
# 11. Try MEtoEDM and EDMtoME.
130-
echo "ISSUE related to MEtoEDMConverter arises."
131130
cmsRun ${SCRAM_TEST_PATH}/run_analyzers_cfg.py outfile=metoedm.root numberEventsInRun=100 numberEventsInLuminosityBlock=20 nEvents=100 metoedmoutput=True
132131
cmsRun ${SCRAM_TEST_PATH}/run_harvesters_cfg.py outfile=edmtome.root inputFiles=metoedm.root nomodules=True metoedminput=True
133-
echo '[ 72 = $(dqmiolistmes.py edmtome.root -r 1 | wc -l) ]'
134-
echo $(dqmiolistmes.py edmtome.root -r 1 | wc -l)
135-
echo '[ 72 = $(dqmiolistmes.py edmtome.root -r 1 -l 1 | wc -l) ]'
136-
echo $(dqmiolistmes.py edmtome.root -r 1 -l 1 | wc -l)
132+
[ 78 = $(dqmiolistmes.py edmtome.root -r 1 | wc -l) ]
133+
[ 78 = $(dqmiolistmes.py edmtome.root -r 1 -l 1 | wc -l) ]
137134
# again, no legacy module (run) output here due to JOB scope for legacy modules
138135
[ "0: 7, 0.0: 1, 1: 10, 100: 30, 200: 10, 5: 15, 5.0: 5" = "$(${SCRAM_TEST_PATH}/dqmiodumpentries.py edmtome.root -r 1 --summary)" ]
139136
[ "0: 6, 1: 26, 1.0: 6, 20: 40" = "$(${SCRAM_TEST_PATH}/dqmiodumpentries.py edmtome.root -r 1 -l 1 --summary)" ]

0 commit comments

Comments
 (0)