Pass the shim folder into container_run so its test needs no built shim
CI / tests (pull_request) Successful in 2m59s

This commit is contained in:
2026-11-14 16:46:50 +01:00
parent 8a50a676a4
commit 4eed9114e5
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ def ensure_image(shim: pathlib.Path, run_docker: Docker = docker) -> str | Failu
return tag
def container_run(mode: str, text: str, run_docker: Docker = docker) -> Ran | Failure:
image = ensure_image(SHIM, run_docker)
def container_run(mode: str, text: str, run_docker: Docker = docker, shim: pathlib.Path = SHIM) -> Ran | Failure:
image = ensure_image(shim, run_docker)
if isinstance(image, Failure):
return image
return run_docker(docker_args(image, mode), text, RUN_SECONDS)