Skip to content

Commit

Permalink
Update test/integration/docker/exec_run.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Kuhnke <[email protected]>
  • Loading branch information
tkilias and ckunki authored Jan 29, 2024
1 parent dfd1893 commit 7ccefc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/docker/exec_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def exec_command(

def exec_run(container: Container, cmd, stream=False, environment=None, workdir=None, user='') \
-> Tuple[Callable[[], Optional[int]], Union[bytes, Iterator[bytes]]]:
"""
Run a command in the provided Docker container and return
a function to inquire the exit code and the stdout as stream or byte array.
"""
resp = container.client.api.exec_create(
container.id, cmd, user=user, environment=environment,
workdir=workdir,
Expand Down

0 comments on commit 7ccefc2

Please sign in to comment.