CIME.tests.test_unit_two_link_to_case2_output.SystemTestsCompareTwoFake
- class CIME.tests.test_unit_two_link_to_case2_output.SystemTestsCompareTwoFake(case1, run_two_suffix='test')[source]
Bases:
SystemTestsCompareTwo
Methods
__init__
Initialize a SystemTestsCompareTwo object.
Do NOT override this method, this method is the framework that controls the build phase.
Perform an individual build
This is the default build phase implementation, it just does an individual build.
clean_build
Compare env_run file to original and warn about differences
Makes a copy (or symlink) of restart files and related files (necessary history files, rpointer files) from case1 to case2.
Do NOT override this method, this method is the framework that controls the run phase.
Perform an individual run.
Runs both phases of the two-phase test and compares their results If success_change is True, success requires some files to be different
- build(sharedlib_only=False, model_only=False, ninja=False, dry_run=False, separate_builds=False, skip_submit=False)[source]
Do NOT override this method, this method is the framework that controls the build phase. build_phase is the extension point that subclasses should use.
- build_phase(sharedlib_only=False, model_only=False)[source]
This is the default build phase implementation, it just does an individual build. This is the subclass’ extension point if they need to define a custom build phase.
PLEASE THROW EXCEPTION ON FAIL
- copy_case1_restarts_to_case2()[source]
Makes a copy (or symlink) of restart files and related files (necessary history files, rpointer files) from case1 to case2.
This is not done automatically, but can be called by individual tests where case2 does a continue_run using case1’s restart files.
- run(skip_pnl=False)[source]
Do NOT override this method, this method is the framework that controls the run phase. run_phase is the extension point that subclasses should use.
- run_indv(suffix='base', st_archive=False, submit_resubmits=None, keep_init_generated_files=False)[source]
Perform an individual run. Raises an EXCEPTION on fail.
keep_init_generated_files: If False (the default), we remove the init_generated_files subdirectory of the run directory before running the case. This is usually what we want for tests, but some specific tests may want to leave this directory in place, so can set this variable to True to do so.