/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/MessageService/test/u2_cfg.py
34 строки
1 KB
Chris Jones
Updated MessageLogger tests to use new configuration syntax
13 ноя 2020, 22:49
13 ноя 2020, 22:49
a48efae
Код
Авторство
О чём код?
# Unit test configuration file for preconfiguration messages: # The preconfiguration message should emerge through cerr import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") import FWCore.Framework.test.cmsExceptionsFatal_cff process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options process.load("FWCore.MessageService.test.Services_cff") process.MessageLogger = cms.Service("MessageLogger", cerr = cms.untracked.PSet( enable = cms.untracked.bool(False) ), files = cms.untracked.PSet( u2_warnings = cms.untracked.PSet( threshold = cms.untracked.string('WARNING'), noTimeStamps = cms.untracked.bool(True) ) ), generate_preconfiguration_message = cms.untracked.string('This tests a message generated before configuration'), ) process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2) ) process.source = cms.Source("EmptySource") process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A") process.p = cms.Path(process.sendSomeMessages)