gaudirun.py
-v-n
MyAlg.MyOpt = "a"; // Test "comment"
OtherAlg.MyOpt = 1;
// grep "// STRIP SELECTION" | awk ...
AnotherAlg.Opt = 1;
conf_dict = eval('\n'.join(stdout.splitlines()))
expected = {'MyAlg': {'MyOpt': 'a'},
'OtherAlg': {'MyOpt': 1},
'AnotherAlg': {'Opt': 1}}
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))