Skip to content

Commit

Permalink
Merge pull request #381 from jedwards4b/test_fixes
Browse files Browse the repository at this point in the history
Properly report failures in component_compare_test

Also fixes #379 

Test suite: scripts_regression_tests - test outlined in issue #295 
Test baseline: 
Test namelist changes: 
Test status: bit for bit

Fixes: #379 #380 

User interface changes?:

Code review: sacks (ran passing and failing ERS tests as noted in issue #295)
  • Loading branch information
billsacks authored Aug 11, 2016
2 parents 84122dd + e58d624 commit 5df46a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions scripts/Tools/component_compare_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,18 @@ else
print_status "$overall_status" "$compare_info: test functionality summary ($msg)" "${testcase_base}"
fi

if [[ $overall_status == FAIL ]]; then
exit 1
else
exit 0
fi










4 changes: 2 additions & 2 deletions utils/python/CIME/XML/env_mach_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ def get_module_system_type(self):

def get_module_system_init_path(self, lang):
init_nodes = self.get_optional_node("init_path", attributes={"lang":lang})
return init_nodes.text if init_nodes else None
return init_nodes.text if init_nodes is not None else None

def get_module_system_cmd_path(self, lang):
cmd_nodes = self.get_optional_node("cmd_path", attributes={"lang":lang})
return cmd_nodes.text if cmd_nodes else None
return cmd_nodes.text if cmd_nodes is not None else None

0 comments on commit 5df46a2

Please sign in to comment.