Skip to content

Commit

Permalink
Fixes excluding files during actual compare
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed Aug 17, 2023
1 parent f9f5b78 commit 3352770
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CIME/hist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3352770

Please sign in to comment.