Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# Test that the ParameterSetDescription validation
# is being run by defining an illegal parameter.
# An exception should be thrown and the job stops.

import FWCore.ParameterSet.Config as cms

process = cms.Process("TEST")

process.load("FWCore.MessageService.MessageLogger_cfi")
process.MessageLogger.cerr.enableStatistics = False

# Intentionally define a parameter that does not
# exist in the ParameterSetDescription which
# should result in an exception.
process.source = cms.Source("PoolSource",
			    fileNames = cms.untracked.vstring("file:dummy.root"),
                            doesNotExist = cms.bool(True))