diff --git a/utils/python/CIME/SystemTests/sms.py b/utils/python/CIME/SystemTests/sms.py index 59a9c1470e2..5c3ae4235fe 100644 --- a/utils/python/CIME/SystemTests/sms.py +++ b/utils/python/CIME/SystemTests/sms.py @@ -10,8 +10,7 @@ def __init__(self, caseroot, case): """ initialize an object interface to the SMS system test """ - expectedrunvars = ["CONTINUE_RUN", "REST_OPTION", "HIST_OPTION", "HIST_N"] - SystemTestsCommon.__init__(self, caseroot, case, expectedrunvars) + SystemTestsCommon.__init__(self, caseroot, case) def run(self): self._case.set_value("CONTINUE_RUN",False) diff --git a/utils/python/CIME/check_input_data.py b/utils/python/CIME/check_input_data.py index f60493bf682..bb843595478 100644 --- a/utils/python/CIME/check_input_data.py +++ b/utils/python/CIME/check_input_data.py @@ -30,17 +30,22 @@ def download_if_in_repo(svn_loc, input_data_root, rel_path): """ Return True if successfully downloaded """ + rel_path = rel_path.strip('/') full_url = os.path.join(svn_loc, rel_path) + full_path = os.path.join(input_data_root, rel_path) logging.info("Trying to download file: '%s' to path '%s'" % (full_url, full_path)) + # Make sure local path exists, create if it does not + if(not os.path.exists(os.path.dirname(full_path))): + os.makedirs(os.path.dirname(full_path)) - stat = run_cmd("svn --non-interactive --trust-server-cert ls %s" % full_url, ok_to_fail=True) + stat, out, err = run_cmd("svn --non-interactive --trust-server-cert ls %s" % full_url, ok_to_fail=True) if (stat != 0): - logging.warning("SVN repo '%s' does not have file '%s'" % (svn_loc, rel_path)) + logging.warning("SVN repo '%s' does not have file '%s'" % (svn_loc, full_url)) return False else: stat, output, errput = \ - run_cmd("svn --non-interactive --trust-server-cert export %s %s" % (full_url, full_path)) + run_cmd("svn --non-interactive --trust-server-cert export %s %s" % (full_url, full_path), ok_to_fail=True) if (stat != 0): logging.warning("svn export failed with output: %s and errput %s" % (output, errput)) return False