Skip to content

Commit

Permalink
fixes erp test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jul 12, 2016
1 parent e0dda70 commit d1ed95a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/python/CIME/SystemTests/erp.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ def build(self, sharedlib_only=False, model_only=False):
# needs to be regenerated for the above new tasks and thread counts
case_setup(self._case, test_mode=True, reset=True)

# update the case to the new values
self._case = None
self._case = Case(self._caseroot)

# Now rebuild the system, given updated information in env_build.xml
self.clean_build()

SystemTestsCommon.build(self, sharedlib_only=sharedlib_only, model_only=model_only)
shutil.move("%s/%s.exe"%(exeroot,cime_model),
"%s/%s.ERP%s.exe"%(exeroot,cime_model,bld))
Expand All @@ -93,7 +97,6 @@ def build(self, sharedlib_only=False, model_only=False):
# env_build.xml to be used in the run phase
shutil.copy("env_mach_pes.xml", os.path.join("LockedFiles","env_mach_pes.ERP%s.xml"%bld ))
shutil.copy("env_build.xml", os.path.join("LockedFiles","env_build.ERP%s.xml"%bld ))

#
#

Expand Down

0 comments on commit d1ed95a

Please sign in to comment.