gaudirun.py -v --dry-run from Gaudi.Configuration import * importOptions("bug_35347.py") importOptions("subdir/bug_35347.py") conf_dict = eval('\n'.join(stdout.splitlines())) expected = {'myAlg': {'Opt1': 1, 'Opt2': 2}} 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))