Skip to content

Commit

Permalink
Merge pull request #2875 from samsrabin/print-all-tests
Browse files Browse the repository at this point in the history
run_sys_tests: Print test list in --verbose/--debug
  • Loading branch information
samsrabin authored Nov 12, 2024
2 parents d71b04f + bb8a8a0 commit 79d46bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/ctsm/crop_calendars/cropcal_figs_module.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions for making crop calendar figures
"""
# pylint: disable=abstract-class-instantiated

import numpy as np

Expand Down
2 changes: 1 addition & 1 deletion python/ctsm/crop_calendars/generate_gdds_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Functions to support generate_gdds.py
"""
# pylint: disable=too-many-lines,too-many-statements
# pylint: disable=too-many-lines,too-many-statements,abstract-class-instantiated
import warnings
import os
import glob
Expand Down
6 changes: 6 additions & 0 deletions python/ctsm/run_sys_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datetime import datetime

from CIME.test_utils import get_tests_from_xml # pylint: disable=import-error
from CIME.test_utils import test_to_string # pylint: disable=import-error
from CIME.cs_status_creator import create_cs_status # pylint: disable=import-error

from ctsm.ctsm_logging import (
Expand Down Expand Up @@ -780,6 +781,11 @@ def _get_compilers_for_suite(suite_name, machine_name, running_ctsm_py_tests):
raise RuntimeError(
"No tests found for suite {} on machine {}".format(suite_name, machine_name)
)
if logger.getEffectiveLevel() <= logging.INFO:
logger.info("Tests:")
for test in test_data:
test_string = test_to_string(test).split(" ")[1]
logger.info(" %s", test_string)
if not running_ctsm_py_tests:
_check_py_env([t["testname"] for t in test_data])
_check_py_env([t["testmods"] for t in test_data if "testmods" in t.keys()])
Expand Down

0 comments on commit 79d46bf

Please sign in to comment.