Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macport issues #1645

Merged
merged 2 commits into from
Jun 7, 2017
Merged

Macport issues #1645

merged 2 commits into from
Jun 7, 2017

Conversation

jedwards4b
Copy link
Contributor

Further cleanup and fixes addressing running scripts_regression_tests.py on a mac.
Issue #1644 is an outstanding problem with this port.

Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes

User interface changes?:

Code review:

@@ -90,12 +90,7 @@ ifeq ($(USE_ESMF_LIB), TRUE)
CPPDEFS += -DUSE_ESMF_LIB
endif

# ESMF_INTERFACE is currently only defined in env_build.xml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a clean-up - there is no longer an ESMF comp_interface

@@ -351,6 +346,7 @@ else
endif
endif

COMP_INTERFACE := $(shell echo $(COMP_INTERFACE) | tr A-Z a-z)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COMP_INTERFACE is passed in uppercase, but needs to be lower case in the include path

@@ -480,16 +480,13 @@ def build_phase(self, sharedlib_only=False, model_only=False):
"""
echo Insta pass
echo SUCCESSFUL TERMINATION > {}/cpl.log.$LID
cp {}/scripts/tests/cpl.hi1.nc.test {}/{}.cpl.hi.0.nc.base
cp {}/scripts/tests/cpl.hi1.nc.test {}/{}.cpl.hi.0.nc
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this change this test fails in the run phase with

ERROR: copy failed: no hist files found in rundir '/Users/jedwards/projects/scratch/TESTTESTDIFF_P1.f19_g16_rx1.A.elm_gnu.20170606_074337_ml444i/run'

It's not clear to me why it isn't failing on other systems.

cp {}/scripts/tests/cpl.hi2.nc.test {}/{}.cpl.hi.0.nc.rest
""".format(rundir, cimeroot, rundir, case, cimeroot, rundir, case)
self._set_script(script)
super(TESTTESTDIFF, self).build_phase(sharedlib_only=sharedlib_only,
model_only=model_only)

def run_indv(self, suffix=None, st_archive=False ):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jedwards4b this is probably what caused the copy fail above (this run_indv changed its defaults). Looks like you found a way around it, so this is a good change.

@jgfouca jgfouca merged commit 86912da into ESMCI:master Jun 7, 2017
@jedwards4b jedwards4b deleted the macport_issues branch January 4, 2018 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants