Skip to content

Commit

Permalink
handle so that we dont have a list of test names to maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jul 29, 2016
1 parent 4e6f7f5 commit 92a266e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion utils/python/CIME/SystemTests/system_tests_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,13 @@ def generate_baseline(self):
append_status("Error in Baseline Generate: %s"%err,sfile="TestStatus.log")

class FakeTest(SystemTestsCommon):

'''
Inheriters of the FakeTest Class are intended to test the code.
All members of the FakeTest Class must
have names beginnig with "TEST" this is so that the find_system_test
in utils.py will work with these classes.
'''
def _set_script(self, script):
self._script = script # pylint: disable=attribute-defined-outside-init

Expand Down
3 changes: 1 addition & 2 deletions utils/python/CIME/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,7 @@ def find_system_test(testname, case):
Fail if the test is not found in any of the paths.
'''
system_test_path = None
if testname in ("TESTRUNPASS", "TESTRUNDIFF", "TESTRUNFAIL", "TESTBUILDFAIL",
"TESTRUNSLOWPASS", "TESTMEMLEAKFAIL", "TESTMEMLEAKPASS"):
if "TEST" in testname:
system_test_path = "CIME.SystemTests.system_tests_common.%s"%(testname)
else:
components = ["any"]
Expand Down

0 comments on commit 92a266e

Please sign in to comment.