Skip to content

Commit

Permalink
Merge pull request #493 from ESMCI/jgfouca/no_baseline_should_be_comp…
Browse files Browse the repository at this point in the history
…are_fail

Do not completely fail if no hists were compared
  • Loading branch information
jedwards4b authored Sep 1, 2016
2 parents 109254b + c19b9ef commit 593069e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/python/CIME/hist_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ def _compare_hists(case, from_dir1, from_dir2, suffix1="", suffix2=""):
comments += cprnc_comments + "\n"
all_success = False

expect(num_compared > 0, "Did not compare any hist files for suffix1='%s' suffix2='%s', dir1='%s', dir2='%s'\nComments=%s" %
(suffix1, suffix2, from_dir1, from_dir2, comments))
if num_compared == 0:
all_success = False
comments += "Did not compare any hist files! Missing baselines?\n"

return all_success, comments

def compare_test(case, suffix1, suffix2):
Expand Down

0 comments on commit 593069e

Please sign in to comment.