From 59b0aa5dba479dd6770ee263607cff1f10cf4f8a Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Thu, 2 Jan 2025 07:50:52 -0700 Subject: [PATCH] sometimes this is the same file, avoid error in this case --- cime_config/SystemTests/ssp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cime_config/SystemTests/ssp.py b/cime_config/SystemTests/ssp.py index bd554aeae9..a99a57a1e8 100644 --- a/cime_config/SystemTests/ssp.py +++ b/cime_config/SystemTests/ssp.py @@ -97,8 +97,10 @@ def run_phase(self): os.symlink(item, link_name) for item in glob.glob("{}/*rpointer*".format(rest_path)): - shutil.copy(item, rundir) - + try: + shutil.copy(item, rundir) + except shutil.SameFileError: + pass self._case.set_value("CLM_ACCELERATED_SPINUP", "off") self._case.set_value("RUN_TYPE", "hybrid") self._case.set_value("GET_REFCASE", False)