Skip to content

Commit 75aedfa

Browse files
committed
CWL container prepull: skip if --no-containers is specified
1 parent 8cd9343 commit 75aedfa

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/toil/cwl/cwltoil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4252,7 +4252,7 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int:
42524252
raise
42534253

42544254
# Attempt to prepull the containers
4255-
if not options.no_prepull:
4255+
if not options.no_prepull and not options.no_container:
42564256
try_prepull(uri, runtime_context, expected_config.batchSystem)
42574257

42584258
options.tool_help = None

src/toil/test/cwl/cwlTest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ def test_run_revsort_nochecksum(self) -> None:
421421
"revsort.cwl", partial(self._tester, main_args=["--no-compute-checksum"])
422422
)
423423

424+
def test_run_revsort_no_container(self) -> None:
425+
self.revsort_no_checksum(
426+
"revsort.cwl", partial(self._tester, main_args=["--no-container"])
427+
)
428+
424429
def test_run_revsort2(self) -> None:
425430
self.revsort("revsort2.cwl", self._tester)
426431

0 commit comments

Comments
 (0)