Skip to content

Commit a1dc796

Browse files
committed
Build and run FUNITFATES in test case dir.
1 parent 86b87c7 commit a1dc796

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
[submodule "fates"]
2929
path = src/fates
3030
url = https://github.com/adrifoster/fates
31-
fxtag = 5374f3924350a96ac0492d6c1ff93f7737bb97c1
31+
fxtag = f35b05f03a1f9ed976bf75af0543fc324647927f
3232
fxrequired = AlwaysRequired
3333
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
3434
fxDONOTUSEurl = https://github.com/NGEET/fates

cime_config/SystemTests/funitfates.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ def __init__(self, case):
2626
FUNIT.__init__(self, case)
2727

2828
def run_phase(self):
29-
# Change to the FATES testing directory
30-
os.chdir(_FATES_TESTING_PYTHON)
31-
32-
# Run the testing
33-
script_name = "run_unit_tests.py"
29+
tool_path = os.path.join(_FATES_TESTING_PYTHON, "run_unit_tests.py")
30+
build_dir = os.path.join("bld", "fates_unit_tests")
31+
cmd = f"{tool_path} -b {build_dir}"
3432

3533
stu.run_python_script(
3634
self._get_caseroot(),
3735
"ctsm_pylib",
38-
os.path.join(os.curdir, script_name),
39-
os.path.join(os.curdir, script_name),
36+
cmd,
37+
tool_path,
4038
)

src/fates

0 commit comments

Comments
 (0)