From d1ed95a12668025d580cd36ae0befef33c2c0507 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Tue, 12 Jul 2016 08:32:00 -0600 Subject: [PATCH] fixes erp test --- utils/python/CIME/SystemTests/erp.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/python/CIME/SystemTests/erp.py b/utils/python/CIME/SystemTests/erp.py index 299d2193417e..518e3c366298 100644 --- a/utils/python/CIME/SystemTests/erp.py +++ b/utils/python/CIME/SystemTests/erp.py @@ -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)) @@ -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 )) - # #