mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fixes https://github.com/galaxyproject/galaxy/issues/14408#issuecomment-1216742827
19 lines
555 B
Python
19 lines
555 B
Python
from galaxy.tool_util.deps.singularity_util import build_singularity_run_command
|
|
|
|
|
|
def test_build_singularity_run_command_defaults():
|
|
cmd = build_singularity_run_command(
|
|
container_command="echo hi",
|
|
image="busybox",
|
|
)
|
|
assert cmd == "singularity -s exec --cleanenv busybox echo hi"
|
|
|
|
|
|
def test_build_singularity_run_command_no_cleanenv():
|
|
cmd = build_singularity_run_command(
|
|
container_command="echo hi",
|
|
image="busybox",
|
|
cleanenv=False,
|
|
)
|
|
assert cmd == "singularity -s exec busybox echo hi"
|