Skip to content

Commit

Permalink
test(docker): allowing log_level arg to docker_build
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed Oct 9, 2023
1 parent cabe24c commit c22587d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/chalk/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def docker_build(
push: bool = False,
config: Optional[Path] = None,
buildkit: bool = True,
log_level: ChalkLogLevel = "none",
) -> tuple[str, ChalkProgram]:
cwd = cwd or Path(os.getcwd())
context = context or getattr(dockerfile, "parent", cwd)
Expand All @@ -387,7 +388,7 @@ def docker_build(
self.run(
# TODO remove log level but there are error bugs due to --debug
# which fail the command validation
log_level="none",
log_level=log_level,
debug=True,
virtual=virtual,
config=config,
Expand Down
1 change: 1 addition & 0 deletions tests/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def test_docker_heartbeat(chalk_copy: Chalk, random_hex: str):
chalk_copy.docker_build(
dockerfile=DOCKERFILES / "valid" / "sleep" / "Dockerfile",
tag=tag,
log_level="trace",
)

_, result = Docker.run(
Expand Down

0 comments on commit c22587d

Please sign in to comment.