Skip to content

Commit

Permalink
Merge pull request #4487 from ESMCI/jgfouca/better_pfs_support
Browse files Browse the repository at this point in the history
PFS tests should always save timing

Test suite: pre-commit
Test baseline:
Test namelist changes:
Test status: [bit for bit, roundoff, climate changing]

Fixes [CIME Github issue #]

User interface changes?:

Update gh-pages html (Y/N)?:
  • Loading branch information
jgfouca authored Sep 19, 2023
2 parents 89b20e1 + fb6e01a commit b10d452
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions CIME/get_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,18 @@ def is_perf_test(test):
True
>>> is_perf_test("SMS_P2.f19_g16_rx1.X.melvin_gnu")
False
>>> is_perf_test("PFS_P2.f19_g16_rx1.X.melvin_gnu")
True
"""
# Get a list of performance suites
suites = get_test_suites()
for suite in suites:
perf = get_test_data(suite)[3]
if perf and suite_has_test(suite, test, skip_inherit=True):
return True
if test.startswith("PFS"):
return True
else:
suites = get_test_suites()
for suite in suites:
perf = get_test_data(suite)[3]
if perf and suite_has_test(suite, test, skip_inherit=True):
return True

return False

Expand Down

0 comments on commit b10d452

Please sign in to comment.