Skip to content
Snippets Groups Projects
Commit afcb50c8 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

move report-to assignment and add the whole report path

parent 8c43fe1f
No related branches found
No related tags found
1 merge request!610Add a pytest to run a dict of CALLAB test runs before releases
......@@ -443,16 +443,20 @@ def test_xfel_calibrate(
cmd = ["xfel-calibrate", det_type, cal_type]
cal_conf = val_dict["config"]
report_name = f"{test_key}_{datetime.now().strftime('%y%m%d_%H%M%S')}"
cal_conf["report-to"] = report_name
out_folder = pathlib.Path(cal_conf["out-folder"].format(
out_dir_base, cal_conf["karabo-id"], test_key))
cmd = parse_config(cmd, cal_conf, out_folder)
reference_folder = pathlib.Path(val_dict["reference-folder"].format(
reference_dir_base, cal_conf["karabo-id"], test_key))
report_name = (
reference_folder /
f"{test_key}_{datetime.now().strftime('%y%m%d_%H%M%S')}")
cal_conf["report-to"] = str(report_name)
cmd = parse_config(cmd, cal_conf, out_folder)
if only_validate:
validate_hdf5_files(
test_key,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment