From 33527707d073d03d77ad4e67a847f60f9c14283c Mon Sep 17 00:00:00 2001 From: Jason Boutte Date: Thu, 17 Aug 2023 08:42:25 -0700 Subject: [PATCH] Fixes excluding files during actual compare --- CIME/hist_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CIME/hist_utils.py b/CIME/hist_utils.py index 83f738dda95..ac9f985f774 100644 --- a/CIME/hist_utils.py +++ b/CIME/hist_utils.py @@ -72,6 +72,8 @@ def copy_histfiles(case, suffix, match_suffix=None): num_copied = 0 for model in _iter_model_file_substrs(case): if case.get_value("TEST") and archive.exclude_testing(model): + logger.info("Case is a test and component %r is excluded from comparison") + continue comments += " Copying hist files for model '{}'\n".format(model) test_hists = archive.get_latest_hist_files( @@ -289,6 +291,10 @@ def _compare_hists( archive = case.get_env("archive") ref_case = case.get_value("RUN_REFCASE") for model in _iter_model_file_substrs(case): + if case.get_value("TEST") and archive.exclude_testing(model): + logger.info("Case is a test and component %r is excluded from comparison") + + continue if model == "cpl" and suffix2 == "multiinst": multiinst_driver_compare = True comments += " comparing model '{}'\n".format(model)