Skip to content

Commit

Permalink
fix framework tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Aug 23, 2023
1 parent a0ff47c commit 471b1a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FWCore/Framework/test/run_XMLException.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
function die { echo Failure $1: status $2 ; exit $2 ; }

LOCAL_TEST_DIR="${CMSSW_BASE}/src/FWCore/Framework/test"
cmsRun -j testXMLSafeException.xml -p ${LOCAL_TEST_DIR}/testXMLSafeException_cfg.py
cmsRun -j testXMLSafeException.xml ${LOCAL_TEST_DIR}/testXMLSafeException_cfg.py
xmllint testXMLSafeException.xml || die "cmsRun testXMLSafeException_cfg.py produced invalid XML job report" $?
2 changes: 1 addition & 1 deletion FWCore/Framework/test/run_testOptions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ expectedStreams=(1 4 4 4 1)
expectedConcurrentLumis=(1 3 2 4 1)
expectedConcurrentIOVs=(1 2 2 4 1)

cmsRun -p ${LOCAL_TEST_DIR}/${configFiles[$1]} >& ${configFiles[$1]}.log || die "cmsRun ${configFiles[$1]}" $?
cmsRun ${LOCAL_TEST_DIR}/${configFiles[$1]} >& ${configFiles[$1]}.log || die "cmsRun ${configFiles[$1]}" $?
grep "Number of Streams = ${expectedStreams[$1]}" ${configFiles[$1]}.log || die "Failed number of streams test" $?
grep "Number of Concurrent Lumis = ${expectedConcurrentLumis[$1]}" ${configFiles[$1]}.log || die "Failed number of concurrent lumis test" $?
grep "Number of Concurrent IOVs = ${expectedConcurrentIOVs[$1]}" ${configFiles[$1]}.log || die "Failed number of concurrent IOVs test" $?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
process.source = cms.Source("EmptySource")


mod = int(sys.argv[2])
mod = int(sys.argv[1])

process.load('FWCore.MessageService.MessageLogger_cfi')
process.MessageLogger.cerr.enable = False
Expand Down
2 changes: 1 addition & 1 deletion FWCore/Framework/test/transition_test_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def chooseTrans(index):
print('****************************************')
return d[index][1]

trans = chooseTrans(int(sys.argv[2]))
trans = chooseTrans(int(sys.argv[1]))

process = cms.Process("TEST")
process.source = cms.Source("TestSource",
Expand Down

0 comments on commit 471b1a5

Please sign in to comment.