Skip to content

Commit

Permalink
Fix remaining test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Jul 19, 2016
1 parent b36e2cd commit 54e3916
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scripts/Tools/bless_test_results
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ from standard_script_setup import *

import wait_for_tests, compare_namelists, simple_compare
from CIME.system_test import NAMELIST_PHASE
from CIME.utils import run_cmd, expect
from CIME.utils import run_cmd, run_cmd_no_fail, expect
from CIME.XML.machines import Machines

import argparse, sys, os, glob, doctest, time
Expand Down
2 changes: 1 addition & 1 deletion scripts/Tools/case.submit
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ OR

args = parser.parse_args(args[1:])

expect(args.prereq is None, "--prereq not currently supported")
CIME.utils.expect(args.prereq is None, "--prereq not currently supported")

CIME.utils.handle_standard_logging_options(args)

Expand Down
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 @@ -55,7 +55,7 @@ def has_failed(self):
return self._runstatus == "FAIL"

def pass_test(self):
if not self.has_failed:
if not self.has_failed():
self._runstatus = "PASS"

def has_passed(self):
Expand Down
4 changes: 1 addition & 3 deletions utils/python/CIME/XML/entry_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ def get_value(self, vid, attribute=None, resolved=True, subgroup=None):
or from the values field if the attribute argument is provided
and matches
"""
expect(subgroup is None, "Subgroup not supported")
logger.debug("Get Value")
logger.debug("Get Value (%s, %s, %s, %s)" % (vid, attribute, resolved, subgroup))
val = None
node = self.get_optional_node("entry", {"id":vid})

Expand Down Expand Up @@ -221,7 +220,6 @@ def get_values(self, item, attribute=None, resolved=True, subgroup=None): # (sel
attribute to its associated value and group
"""
logger.debug("(get_values) Input values: %s , %s , %s , %s , %s" , self.__class__.__name__ , item, attribute, resolved, subgroup)
expect(subgroup is None, "Subgroup not supported")

nodes = [] # List of identified xml elements
results = [] # List of identified parameters
Expand Down
4 changes: 0 additions & 4 deletions utils/python/CIME/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ def get_values(self, item=None, attribute=None, resolved=True, subgroup=None):
traceback.print_exc()
logger.debug("No get_values method for class %s (%s)" , env_file.__class__.__name__ , AttributeError)


if result is not None and (len(result) >= 1):

if resolved :
Expand All @@ -239,9 +238,6 @@ def get_values(self, item=None, attribute=None, resolved=True, subgroup=None):
logger.debug("(get_values) Return value: %s" , results )
return results




def get_type_info(self, item):
result = None
for env_file in self._env_entryid_files:
Expand Down
2 changes: 1 addition & 1 deletion utils/python/tests/scripts_regression_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ def test_cime_case(self):

build_complete = run_cmd_no_fail("./xmlquery BUILD_COMPLETE -value",
from_dir=casedir)
self.assertEqual(build_complete, "True",
self.assertEqual(build_complete, "TRUE",
msg="Build complete had wrong value '%s'" %
build_complete)

Expand Down

0 comments on commit 54e3916

Please sign in to comment.