gaudirun.py
-v
--dry-run
main.py
# skip Athena common messages
conf_dict = eval('\n'.join(stdout.splitlines()))
expected = { 'ApplicationMgr': {'TopAlg': ['0','1','2','3','4',
'5','6','7','8','9']},
'MessageSvc': {'OutputLevel': 4},
'myAlg': {'Dict': {'a': 1, 'b': 2}},
'myAlg.myTool': {'Int': 10, 'Bool': True},
'mySvc': {'List': ['a', 'c'], 'Bool': True}}
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))
import re
expected_warning = 'WARNING: file \'.*test1.opts\' already included, ignored'
if not re.search(expected_warning,stdout):
causes.append("missing warning message")
result["GaudiTest.expected_warning"] = result.Quote(expected_warning)