46 """Run a job writing a file with FileMetaData"""
47 msg = Logging.logging.getLogger(
"TestFileMetaData")
49 flags = AllConfigFlags.initConfigFlags()
50 flags.Exec.OutputLevel = Constants.DEBUG
51 flags.Input.Files = TestDefaults.defaultTestFiles.AOD_RUN2_DATA
52 flags.Output.AODFileName =
"test.pool.root"
53 flags.Output.doWriteAOD =
True
54 flags.Concurrency.NumThreads = 4
55 flags.Concurrency.NumConcurrentEvents = 4
58 write = MainServicesConfig.MainServicesCfg(flags)
65 msg.info(
"File contains xAOD::FileMetaData")
67 msg.error(
"File does not contain xAOD::FileMetaData")
68 except ReferenceError:
69 msg.error(
"Failed to produce output file")
71 msg.error(
"Failed to get metadata item list from file")