diff --git a/tests/test_reference_runs/test_pre_deployment.py b/tests/test_reference_runs/test_pre_deployment.py index 152f0a4b4c20fa9b6a7b03680c692d08f7e8f57b..1cf3fdfc148a43fc79fdbfeefc245ea5f73ec65d 100644 --- a/tests/test_reference_runs/test_pre_deployment.py +++ b/tests/test_reference_runs/test_pre_deployment.py @@ -375,14 +375,15 @@ def test_xfel_calibrate( if time_counter > time_to_wait: assert False, f"{test_key} failure, report doesn't exists." LOGGER.info("Report found.") - # For corrections validate same calibration constants were retrieved. - - metadata_file = f"calibration_metadata_{cal_conf['karabo-id']}" - assert compare_metadata_ccvs( - out_folder / metadata_file, - reference_folder / metadata_file, - "retrieved-constants", - ), "Found difference in the metadata for the retrieved Constants." + + if cal_type.lower() != "correct": + # For corrections validate calibration constants + metadata_file = f"calibration_metadata_{cal_conf['karabo-id']}" + assert compare_metadata_ccvs( + out_folder / metadata_file, + reference_folder / metadata_file, + "retrieved-constants", + ), "Found difference in the metadata for the retrieved Constants." # Stop tests at this point, if desired. if not skip_numerical_validation: