Skip to content

Commit

Permalink
Adds unittests to cover bless_test_results module
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed Oct 25, 2023
1 parent ae788e8 commit b1d3d88
Show file tree
Hide file tree
Showing 2 changed files with 959 additions and 2 deletions.
3 changes: 1 addition & 2 deletions CIME/bless_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ def bless_namelists(
return True, None


###############################################################################
def bless_history(test_name, case, baseline_name, baseline_root, report_only, force):
###############################################################################
real_user = case.get_value("REALUSER")
with EnvironmentContext(USER=real_user):

Expand Down Expand Up @@ -273,6 +271,7 @@ def bless_test_results(
testopts = parse_test_name(test_name)[1]
testopts = [] if testopts is None else testopts
build_only = "B" in testopts
# TODO test_name will never be None otherwise `parse_test_name` would raise an error
if test_name is None:
case_dir = os.path.basename(test_dir)
test_name = CIME.utils.normalize_case_id(case_dir)
Expand Down
Loading

0 comments on commit b1d3d88

Please sign in to comment.