You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see any place that ./scripts_regression_tests.py is imported in CIME or ACME, so there is no need as far as I can tell to initialize MACHINE on import.
Note: it might be a good idea to change the options handling here to argparse as well.
The text was updated successfully, but these errors were encountered:
@jedwards4b That is also a fix, but still requires changes to CIME. That is, if that's the expected use, the machine option should be removed (it is non-functional right now) and the error message or documentation should also tell you to set the CIME_MACHINE environment variable.
Interesting about argparse; do you remember what the problems were?
I think that argparse was incompatible with the unittest argument handling mechanism.
I would encourage you to issue a PR with the changes you suggest.
fix machines option to srt and unitialzed var
Fix an unitialized variable in prep_ocn_mod.F90, fix the --machine option to scripts_regression_tests.py
Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: [bit for bit, roundoff, climate changing]
Fixes#1952Fixes#2019
User interface changes?:
Update gh-pages html (Y/N)?:
Code review:
When trying to run the CIME regression tests on my linux desktop, using this command:
./scripts_regression_tests.py --machine linux-generic 2>&1
I get this error:
Note: This occurs in both ACME/cime and ESMCI/cime.
It looks like this error is caused by:
cime/scripts/tests/scripts_regression_tests.py
Line 34 in 2d39e61
where the
Machines()
class is initialized upon import, before the_main_func()
is run, causing thisexpect
to failcime/scripts/lib/CIME/XML/machines.py
Lines 45 to 51 in 2d39e61
and the regression tests to never reach the handling of the command line arguments in
_main_func()
:cime/scripts/tests/scripts_regression_tests.py
Lines 2464 to 2472 in 2d39e61
Possible Fix:
This could be fixed by deleting the initialization on import:
cime/scripts/tests/scripts_regression_tests.py
Line 34 in 2d39e61
and changing the
--machine
option handling in_main_func()
to:I don't see any place that
./scripts_regression_tests.py
is imported in CIME or ACME, so there is no need as far as I can tell to initializeMACHINE
on import.Note: it might be a good idea to change the options handling here to argparse as well.
The text was updated successfully, but these errors were encountered: