Skip to content

Commit 5d2db9c

Browse files
authored
Merge pull request #4698 from minxu74/master
skip three files when staging refcase files to avoid a rmtree error
2 parents 1236c0f + dd150a6 commit 5d2db9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CIME/case/check_input_data.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,12 @@ def stage_refcase(self, input_data_root=None, data_list_dir=None):
350350

351351
for rcfile in glob.iglob(os.path.join(refdir, "*")):
352352
rcbaseline = os.path.basename(rcfile)
353-
if not os.path.exists("{}/{}".format(rundir, rcbaseline)):
353+
skipfiles = (
354+
"timing" in rcbaseline
355+
or "spio_stats" in rcbaseline
356+
or "memory." in rcbaseline
357+
)
358+
if not os.path.exists("{}/{}".format(rundir, rcbaseline)) and not skipfiles:
354359
logger.info("Staging file {}".format(rcfile))
355360
os.symlink(rcfile, "{}/{}".format(rundir, rcbaseline))
356361
# Backward compatibility, some old refcases have cam2 in the name

0 commit comments

Comments
 (0)