Skip to content

Commit d2cc4f4

Browse files
committed
Run command on docker host
1 parent 5b6fe7e commit d2cc4f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/test_repository.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ def infrahub_version(self) -> str:
2020
async def test_add_repository(self, client: InfrahubClient, remote_repos_dir, infrahub_compose):
2121
src_directory = get_fixtures_dir() / "integration/mock_repo"
2222
repo = GitRepo(name="mock_repo", src_directory=src_directory, dst_directory=remote_repos_dir)
23+
print(infrahub_compose._run_command(cmd=["ls", "-la", str(remote_repos_dir)]))
2324
print(infrahub_compose.get_config())
2425
# print(infrahub_compose._run_command(cmd="echo $INFRAHUB_TESTING_LOCAL_REMOTE_GIT_DIRECTORY"))
25-
print(infrahub_compose.exec_in_container(["ls", "/remote"], "task-worker"))
26+
print(infrahub_compose.exec_in_container(["ls", "-la", "/remote"], "task-worker"))
2627
commit = repo._repo.git[repo._repo.git.head()]
2728
assert len(list(repo._repo.git.get_walker())) == 1
2829
assert commit.message.decode("utf-8") == "First commit"

0 commit comments

Comments
 (0)