Skip to content

Commit

Permalink
Added '--skip-preview-namelist' to case.build test
Browse files Browse the repository at this point in the history
Added '--skip-preview-namelist' to the call for case.build in the
testing suite, since building namelists during tests isn't done.

Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #1155, #1190

User interface changes?: Added --skip-preview-namelist to case.build and
template.case.run

Code review: @billsacks, @jgfouca, @rljacob
  • Loading branch information
Erich L Foster committed May 3, 2017
1 parent 0653126 commit 429f82d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
17 changes: 2 additions & 15 deletions scripts/Tools/case.submit
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,7 @@ from CIME.case import Case
###############################################################################
def parse_command_line(args, description):
###############################################################################
parser = argparse.ArgumentParser(
usage="""\n{} [<casedir>] [--verbose]
OR
{} --help
OR
{} --test
\033[1mEXAMPLES:\033[0m
\033[1;32m# Setup case \033[0m
> {}
""".format(((os.path.basename(args[0]), ) * 4),
description=description,
formatter_class=argparse.ArgumentDefaultsHelpFormatter
))
parser = argparse.ArgumentParser(description=description)

CIME.utils.setup_standard_logging_options(parser)

Expand Down Expand Up @@ -72,7 +59,7 @@ def _main_func(description):

with Case(args.caseroot, read_only=False) as case:
submit(case, job=args.job, no_batch=args.no_batch,
resubmit=args.resubmit, skip_pnl=args.skip_pnl,
resubmit=args.resubmit, skip_pnl=args.skip_preview_namelist,
batch_args=args.batch_args)

if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions scripts/lib/CIME/XML/env_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def get_submit_args(self, case, job):

return submitargs

def submit_jobs(self, case, no_batch=False, job=None, batch_args=None):
def submit_jobs(self, case, no_batch=False, job=None, skip_pnl=False, batch_args=None):
alljobs = self.get_jobs()
startindex = 0
jobs = []
Expand Down Expand Up @@ -332,7 +332,7 @@ def submit_jobs(self, case, no_batch=False, job=None, batch_args=None):
jobid = None

logger.warn("job is {}".format(job))
depid[job] = self.submit_single_job(case, job, jobid, no_batch=no_batch, batch_args=batch_args)
depid[job] = self.submit_single_job(case, job, jobid, no_batch=no_batch, skip_pnl=skip_pnl, batch_args=batch_args)
if self.batchtype == "cobalt":
break

Expand Down
4 changes: 2 additions & 2 deletions scripts/lib/CIME/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,9 +571,9 @@ def _run_phase(self, test):
###########################################################################
test_dir = self._get_test_dir(test)
if self._no_batch:
cmd = "./case.submit --no-batch"
cmd = "./case.submit --no-batch --skip-preview-namelist"
else:
cmd = "./case.submit "
cmd = "./case.submit --skip-preview-namelist"

return self._shell_cmd_for_phase(test, cmd, RUN_PHASE, from_dir=test_dir)

Expand Down

0 comments on commit 429f82d

Please sign in to comment.