Commit 5430d57d authored by Chris Burr's avatar Chris Burr
Browse files

Merge branch 'aiwieder/LFN_input' into 'master'

Generate xml catalog when taking an LFN as dependent input

See merge request !54
parents 3ee50fe6 fc056b1f
Pipeline #3894684 passed with stages
in 7 minutes and 53 seconds
......@@ -112,6 +112,11 @@ def prepare_test(production_name, job_name, dependent_input=None):
if "bk_query" in job_data["input"] or "transform_ids" in job_data["input"]:
if dependent_input is not None:
prodrun_conf["input"]["files"] = [dependent_input]
if "LFN:" in dependent_input:
(out_dir / "pool_xml_catalog.xml").write_text(
pool_xml_catalog([dependent_input])
)
prodrun_conf["input"]["xml_file_catalog"] = "pool_xml_catalog.xml"
else:
response = requests.post(
f"{LBAPI_HOST}/pipelines/lfns/",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment