Skip to content

Commit

Permalink
CWL container prepull: skip if --no-containers is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Dec 17, 2024
1 parent 8cd9343 commit 75aedfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/toil/cwl/cwltoil.py
Original file line number Diff line number Diff line change
Expand Up @@ -4252,7 +4252,7 @@ def main(args: Optional[list[str]] = None, stdout: TextIO = sys.stdout) -> int:
raise

# Attempt to prepull the containers
if not options.no_prepull:
if not options.no_prepull and not options.no_container:
try_prepull(uri, runtime_context, expected_config.batchSystem)

options.tool_help = None
Expand Down
5 changes: 5 additions & 0 deletions src/toil/test/cwl/cwlTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ def test_run_revsort_nochecksum(self) -> None:
"revsort.cwl", partial(self._tester, main_args=["--no-compute-checksum"])
)

def test_run_revsort_no_container(self) -> None:
self.revsort_no_checksum(
"revsort.cwl", partial(self._tester, main_args=["--no-container"])
)

def test_run_revsort2(self) -> None:
self.revsort("revsort2.cwl", self._tester)

Expand Down

0 comments on commit 75aedfa

Please sign in to comment.