Skip to content

Commit

Permalink
Jenkins_generic_job: Add --save-timing
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Oct 17, 2023
1 parent 88255d5 commit 56ea782
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CIME/Tools/jenkins_generic_job
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ OR
help="Do not fail if there are memleaks",
)

parser.add_argument(
"--save-timing",
action="store_true",
help="Tell create_test to save timings of tests",
)

parser.add_argument(
"--pes-file",
help="Full pathname of an optional pes specification file. The file"
Expand Down Expand Up @@ -259,6 +265,7 @@ OR
args.check_throughput,
args.check_memory,
args.ignore_memleak,
args.save_timing,
args.pes_file,
args.jenkins_id,
args.queue,
Expand Down Expand Up @@ -289,6 +296,7 @@ def _main_func(description):
check_throughput,
check_memory,
ignore_memleak,
save_timing,
pes_file,
jenkins_id,
queue,
Expand Down Expand Up @@ -317,6 +325,7 @@ def _main_func(description):
check_throughput,
check_memory,
ignore_memleak,
save_timing,
pes_file,
jenkins_id,
queue,
Expand Down
12 changes: 8 additions & 4 deletions CIME/jenkins_generic_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def jenkins_generic_job(
check_throughput,
check_memory,
ignore_memleak,
save_timing,
pes_file,
jenkins_id,
queue,
Expand Down Expand Up @@ -361,16 +362,19 @@ def jenkins_generic_job(
create_test_args.append("-j {:d}".format(parallel_jobs))

if walltime is not None:
create_test_args.append(" --walltime " + walltime)
create_test_args.append("--walltime " + walltime)

if baseline_root is not None:
create_test_args.append(" --baseline-root " + baseline_root)
create_test_args.append("--baseline-root " + baseline_root)

if pes_file is not None:
create_test_args.append(" --pesfile " + pes_file)
create_test_args.append("--pesfile " + pes_file)

if queue is not None:
create_test_args.append(" --queue " + queue)
create_test_args.append("--queue " + queue)

if save_timing:
create_test_args.append("--save-timing")

create_test_cmd = "./create_test " + " ".join(create_test_args)

Expand Down

0 comments on commit 56ea782

Please sign in to comment.