Pass the shim folder into container_run so its test needs no built shim
CI / tests (pull_request) Successful in 2m59s
CI / tests (pull_request) Successful in 2m59s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user