Skip to content

Commit

Permalink
fix tests on izumi
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Apr 3, 2024
1 parent 7d01b5a commit 152bad9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions git_fleximod/git_fleximod.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def submodule_sparse_checkout(root_dir, name, url, path, sparsefile, tag="master
rgit = GitInterface(root_dir, logger)
superroot = rgit.git_operation("rev-parse", "--show-superproject-working-tree")
if superroot:
gitroot = superroot
gitroot = superroot.strip()
else:
gitroot = root_dir
gitroot = root_dir.strip()
assert os.path.isdir(os.path.join(gitroot, ".git"))
# first create the module directory
if not os.path.isdir(os.path.join(root_dir, path)):
Expand Down
2 changes: 1 addition & 1 deletion git_fleximod/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def execute_subprocess(commands, status_to_caller=False, output_to_caller=False)
cwd = os.getcwd()
msg = "In directory: {0}\nexecute_subprocess running command:".format(cwd)
logging.info(msg)
commands_str = " ".join(commands)
commands_str = " ".join(str(element) for element in commands)
logging.info(commands_str)
return_to_caller = status_to_caller or output_to_caller
status = -1
Expand Down
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def logger():
path = modules/test
url = https://github.com/ESMCI/mpi-serial.git
fxtag = MPIserial_2.4.0
fxurl = https://github.com/ESMCI/mpi-serial.git
fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial.git
fxrequired = ToplevelRequired
"""},
{"subrepo_path": "modules/test_optional",
Expand All @@ -39,7 +39,7 @@ def logger():
path = modules/test_optional
url = https://github.com/ESMCI/mpi-serial.git
fxtag = MPIserial_2.4.0
fxurl = https://github.com/ESMCI/mpi-serial.git
fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial.git
fxrequired = ToplevelOptional
"""},
{"subrepo_path": "modules/test_alwaysoptional",
Expand All @@ -53,7 +53,7 @@ def logger():
path = modules/test_alwaysoptional
url = https://github.com/ESMCI/mpi-serial.git
fxtag = e5cf35c
fxurl = https://github.com/ESMCI/mpi-serial.git
fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial.git
fxrequired = AlwaysOptional
"""},
{"subrepo_path": "modules/test_sparse",
Expand All @@ -67,7 +67,7 @@ def logger():
path = modules/test_sparse
url = https://github.com/ESMCI/mpi-serial.git
fxtag = MPIserial_2.5.0
fxurl = https://github.com/ESMCI/mpi-serial.git
fxDONOTUSEurl = https://github.com/ESMCI/mpi-serial.git
fxrequired = AlwaysRequired
fxsparse = ../.sparse_file_list
"""},
Expand Down

0 comments on commit 152bad9

Please sign in to comment.