1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# 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("EmptySource")
process.DummyService = cms.Service("DummyService",
value = cms.int32(11),
noParameterWithThisName = cms.int32(11)
)
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
|