Skip to content

Commit

Permalink
Only enter for-loop if verbose+.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Nov 11, 2024
1 parent 5ccd357 commit e81cbc8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions python/ctsm/run_sys_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,10 +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)
)
logger.info("Tests:")
for test in test_data:
test_string = test_to_string(test).split(" ")[1]
logger.info(" %s", test_string)
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 e81cbc8

Please sign in to comment.