Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:34

0001 # Test that the ParameterSetDescription validation
0002 # is being run by defining an illegal parameter.
0003 # An exception should be thrown and the job stops.
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 
0009 process.load("FWCore.MessageService.MessageLogger_cfi")
0010 process.MessageLogger.cerr.enableStatistics = False
0011 
0012 process.load("FWCore.Modules.printContent_cfi")
0013 # Intentionally define a parameter that does not
0014 # exist in the ParameterSetDescription which
0015 # should result in an exception.
0016 process.printContent.doesNotExist = cms.int32(1)
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019     input = cms.untracked.int32(1)
0020 )
0021 
0022 process.source = cms.Source("EmptySource")
0023 
0024 process.p = cms.Path(process.printContent)