mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 15:45:04 +08:00
21 lines
663 B
Python
21 lines
663 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 --contain --cleanenv --ipc --pid --no-mount tmp busybox echo hi"
|
|
|
|
|
|
def test_build_singularity_run_command_no_cleanenv_ipc_pid():
|
|
cmd = build_singularity_run_command(
|
|
container_command="echo hi",
|
|
image="busybox",
|
|
cleanenv=False,
|
|
pid=False,
|
|
ipc=False,
|
|
)
|
|
assert cmd == "singularity -s exec --contain --no-mount tmp busybox echo hi"
|