Skip to content

Commit

Permalink
fix for lii test and response to review
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jul 26, 2016
1 parent 1894e28 commit a796384
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/create_test
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ OR
help="Use this category key in the lookup in testlist.xml")
parser.add_argument("--xml-testlist",
help="Use this testlist to lookup tests")
parser.add_argument("--testfile", nargs=1, default=None,
parser.add_argument("--testfile",
help="A file containing an ascii list of tests to run")

args = parser.parse_args(args[1:])
Expand Down
8 changes: 4 additions & 4 deletions utils/python/CIME/SystemTests/lii.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def run(self):
self._case.set_value("HIST_OPTION","$STOP_OPTION")
self._case.set_value("HIST_N","$STOP_N")
self._case.flush()
for user_nl_dir in ("user_nl_nointerp", "user_nl_interp"):
for filename in glob.glob(r'%s/*'%user_nl_dir):
for user_nl_dir in ("nointerp", "interp"):
for filename in glob.glob(r'user_nl_%s/*'%user_nl_dir):
shutil.copy(filename,
os.path.join(caseroot,os.path.basename(filename)))

Expand All @@ -70,11 +70,11 @@ def run(self):
logger.info("doing a %d %s initial test with init_interp set to %s, no restarts written"
% (stop_n, stop_option, os.path.basename(filename) == "user_nl_interp"))

success = SystemTestsCommon._run(self)
success = SystemTestsCommon._run(self, suffix=user_nl_dir)
if not success:
break
if success:
return self._component_compare_test("base", "init_interp_on")
return self._component_compare_test("nointerp", "interp")
else:
return False

Expand Down
2 changes: 1 addition & 1 deletion utils/python/CIME/SystemTests/system_tests_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def compare_baseline(self):
if not os.path.isfile(baselog):
# for backward compatibility
baselog = os.path.join(basecmp_dir, "cpl.log")
if baselog is not None and len(memlist) > 3:
if os.path.isfile(baselog) and len(memlist) > 3:
blmem = self._get_mem_usage(baselog)[-1][1]
curmem = memlist[-1][1]
diff = (curmem-blmem)/blmem
Expand Down

0 comments on commit a796384

Please sign in to comment.