gaudirun.py
-v-n
from Gaudi.Configuration import *
class Brunel(ConfigurableUser):
__slots__ = { "EvtMax": -1, # Maximum number of events to process
}
Brunel().EvtMax = 10
ApplicationMgr().EvtMax = 20
conf_dict = eval('\n'.join(stdout.splitlines()))
expected = { 'ApplicationMgr': { 'EvtMax': 20 } }
if conf_dict != expected:
causes.append("configuration result")
from pprint import PrettyPrinter
pp = PrettyPrinter()
result["GaudiTest.configuration.expected"] = result.Quote(pp.pformat(expected))
result["GaudiTest.configuration.found"] = result.Quote(pp.pformat(conf_dict))