../scripts/test_purge.py from pprint import PrettyPrinter pp = PrettyPrinter() expected = {'AuditorSvc': {'Auditors': ['ChronoAuditor', 'TimingAuditor/TIMER']}} exec("\n".join(stdout.splitlines())) # stdout needs to be sanitized for windows result["GaudiTest.expected_config"] = result.Quote(pp.pformat(expected)) result["GaudiTest.initial_config"] = result.Quote(pp.pformat(first)) result["GaudiTest.purged_config"] = result.Quote(pp.pformat(purged)) result["GaudiTest.final_config"] = result.Quote(pp.pformat(second)) if first != expected: causes.append("initial configuration") elif purged != {}: causes.append("purged configuration") elif second != expected: causes.append("final configuration")