Skip to content

Commit 7e1b23e

Browse files
committed
Added test for Ref use while promptReading
1 parent 7958762 commit 7e1b23e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

FWCore/Integration/test/ref_merge_test_cfg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
parser = argparse.ArgumentParser(prog=sys.argv[0], description='Test Refs after merge.')
66

77
parser.add_argument("--fileName", help="file to read")
8+
parser.add_argument("--promptRead", action="store_true", default=False, help="prompt read the event products")
89

910
args = parser.parse_args()
1011

1112
process = cms.Process("TEST")
1213

1314
from IOPool.Input.modules import PoolSource
14-
process.source = PoolSource(fileNames = [f"file:{args.fileName}"])
15+
process.source = PoolSource(fileNames = [f"file:{args.fileName}"], delayReadingEventProducts = not args.promptRead)
1516

1617
from FWCore.Integration.modules import OtherThingAnalyzer
1718
process.tester = OtherThingAnalyzer(other = ("d","testUserTag"))

FWCore/Integration/test/run_RefMerge.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ LOCAL_TEST_DIR=${SCRAM_TEST_PATH}
1414
echo ${test}MERGE------------------------------------------------------------
1515
cmsRun ${LOCAL_TEST_DIR}/${test}cfg.py --inFile1 'ref_merge_prod1.root' --inFile2 'ref_merge_prod2.root' --outFile 'ref_merge.root' || die "cmsRun ${test}cfg.py" $?
1616

17-
echo ${test}test------------------------------------------------------------
18-
cmsRun ${LOCAL_TEST_DIR}/${test}test_cfg.py --fileName 'ref_merge.root' || die "cmsRun ${test}test_cfg.py" $?
17+
18+
echo ${test}MERGE promptRead------------------------------------------------------------
19+
cmsRun ${LOCAL_TEST_DIR}/${test}test_cfg.py --fileName 'ref_merge.root' --promptRead || die "cmsRun ${test}test_cfg.py" $?
1920

2021
echo ${test}keepAllProd ------------------------------------------------------------
2122
cmsRun ${LOCAL_TEST_DIR}/${test}prod_cfg.py --extraProducers --keepAllProducts --fileName 'ref_merge_prod_all.root' || die "cmsRun ${test}prod_cfg.py --keepAllProducts" $?

0 commit comments

Comments
 (0)