Skip to content

Commit 5b9f472

Browse files
committed
test_environment: simplify SINGULARITY_BIND handling
1 parent 28f4bf5 commit 5b9f472

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_environment.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,10 @@ def PWD(v: str, env: Env) -> bool:
163163
if version >= Version("3.6"):
164164
sing_vars["SINGULARITY_COMMAND"] = "exec"
165165
if version >= Version("3.7"):
166-
if version > Version("3.9"):
167-
sing_vars["SINGULARITY_BIND"] = ""
168-
else:
166+
def BIND(v: str, env: Env) -> bool:
167+
return True
169168

170-
def BIND(v: str, env: Env) -> bool:
171-
return v.startswith(tmp_prefix) and v.endswith(":/tmp")
172-
173-
sing_vars["SINGULARITY_BIND"] = BIND
169+
sing_vars["SINGULARITY_BIND"] = BIND
174170
if version >= Version("3.10"):
175171
sing_vars["SINGULARITY_COMMAND"] = "run"
176172
sing_vars["SINGULARITY_NO_EVAL"] = None

0 commit comments

Comments
 (0)