Skip to content

Commit

Permalink
Merge pull request #4698 from minxu74/master
Browse files Browse the repository at this point in the history
skip three files when staging refcase files to avoid a rmtree error
  • Loading branch information
jedwards4b authored Nov 1, 2024
2 parents 1236c0f + dd150a6 commit 5d2db9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CIME/case/check_input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,12 @@ def stage_refcase(self, input_data_root=None, data_list_dir=None):

for rcfile in glob.iglob(os.path.join(refdir, "*")):
rcbaseline = os.path.basename(rcfile)
if not os.path.exists("{}/{}".format(rundir, rcbaseline)):
skipfiles = (
"timing" in rcbaseline
or "spio_stats" in rcbaseline
or "memory." in rcbaseline
)
if not os.path.exists("{}/{}".format(rundir, rcbaseline)) and not skipfiles:
logger.info("Staging file {}".format(rcfile))
os.symlink(rcfile, "{}/{}".format(rundir, rcbaseline))
# Backward compatibility, some old refcases have cam2 in the name
Expand Down

0 comments on commit 5d2db9c

Please sign in to comment.