Commit fc056b1f authored by Aidan Richard Wiederhold's avatar Aidan Richard Wiederhold
Browse files

Generate xml catalog when taking an LFN as dependent input

parent 3ee50fe6
Pipeline #3894265 passed with stage
in 5 minutes and 10 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/",
......
Markdown is supported
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