From d269d58cd0de0d50999d5393c679561ef5b8b300 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Wed, 3 Jan 2024 17:21:26 +0100 Subject: [PATCH] fix after testing with an expected failing test --- tests/test_reference_runs/test_pre_deployment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_reference_runs/test_pre_deployment.py b/tests/test_reference_runs/test_pre_deployment.py index 1cf3fdfc1..ab830ddf6 100644 --- a/tests/test_reference_runs/test_pre_deployment.py +++ b/tests/test_reference_runs/test_pre_deployment.py @@ -376,17 +376,19 @@ def test_xfel_calibrate( assert False, f"{test_key} failure, report doesn't exists." LOGGER.info("Report found.") - if cal_type.lower() != "correct": + if cal_type.lower() == "correct": # For corrections validate calibration constants - metadata_file = f"calibration_metadata_{cal_conf['karabo-id']}" + metadata_file = f"calibration_metadata_{cal_conf['karabo-id']}.yml" assert compare_metadata_ccvs( out_folder / metadata_file, reference_folder / metadata_file, "retrieved-constants", ), "Found difference in the metadata for the retrieved Constants." + LOGGER.info("Retrieved CCVs validated.") # Stop tests at this point, if desired. if not skip_numerical_validation: assert validate_hdf5_files( out_folder, reference_folder, cal_type ), "HDF5 files changed - see details above" + LOGGER.info("H5 Files validated.") -- GitLab