Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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 # Intentionally define a parameter that does not
0013 # exist in the ParameterSetDescription which
0014 # should result in an exception.
0015 process.source = cms.Source("PoolSource",
0016                 fileNames = cms.untracked.vstring("file:dummy.root"),
0017                             doesNotExist = cms.bool(True))
0018