ESMCI / cime

Common Infrastructure for Modeling the Earth
http://esmci.github.io/cime
Other
162 stars 209 forks source link

list_e3sm_tests is partly broken #4628

Closed rljacob closed 4 months ago

rljacob commented 6 months ago

The script list_e3sm_tests in cime/CIME/Tools is sorta broken.

Running with no arguments gives an inaccurate help text.

[jacob@chrlogin2 Tools]$ ./list_e3sm_tests
usage:
list_e3sm_tests <thing-to-list> [<test category> <test category> ...] [--verbose]
OR
list_e3sm_tests --help

EXAMPLES:
    # List all tested compsets
    > list_e3sm_tests compsets
    # List all compsets tested by e3sm_developer
    > list_e3sm_tests compsets e3sm_developer
    # List all grids tested by e3sm_developer
    > list_e3sm_tests grid e3sm_developer
list_e3sm_tests: error: the following arguments are required: suites
Exit 2

The "compsets" option as described above doesn't work

[jacob@chrlogin2 Tools]$ ./list_e3sm_tests compsets
ERROR: Unknown test suite: 'compsets'

The real command requires the -t argument. /list_e3sm_tests -t compsets e3sm_developer

The test suite argument DOES work (e.g. ./list_e3sm_tests e3sm_developer will list all the tests)

The name of this should be changed to "list_pydict_tests" to remove model-specific things from CIME CCS.