Skip to content

Commit

Permalink
integration tests: Remove unused clone_repository function
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Šoltis <[email protected]>
  • Loading branch information
slimreaper35 committed Jan 27, 2025
1 parent c6e1b31 commit e48d369
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/integration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,6 @@ def _build_image(podman_cmd: list[str], *, tag: str) -> ContainerImage:
return ContainerImage(tag)


def clone_repository(repo_url: str, ref: str, folder_name: str, tmpdir: Path) -> Path:
"""
Clone repository and checkout specific commit.
:param repo_url: Git repository URL
:param ref: Git reference
:param folder_name: Name of folder where content will be cloned
:param tmpdir: Temp directory for pytest
:return: Absolute path to cloned repository
:rtype: str
"""
folder = tmpdir / folder_name

repo = Repo.clone_from(repo_url, folder)
repo.git.checkout(ref)
log.info("Cloned repository path: %s", folder)
return folder


def run_cmd(cmd: List[str]) -> Tuple[str, int]:
"""
Run command via subprocess.
Expand Down

0 comments on commit e48d369

Please sign in to comment.