Skip to content

Commit

Permalink
fix memleak test giving error if baseline not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jul 25, 2016
1 parent 8ff5f19 commit d6c28b4
Showing 1 changed file with 1 addition and 1 deletion.
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 len(memlist) > 3:
if baselog is not None 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 d6c28b4

Please sign in to comment.