Skip to content

Commit

Permalink
Pass cwd to first two calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jun 30, 2022
1 parent c4bb045 commit a361670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ def __enter__(self) -> "OCIContainer":
self.bash_stdout = self.process.stdout

# run a noop command to block until the container is responding
self.call(["/bin/true"])
self.call(["/bin/true"], cwd="/")

if self.cwd:
# Although `docker create -w` does create the working dir if it
# does not exist, podman does not. There does not seem to be a way
# to setup a workdir for a container running in podman.
self.call(["mkdir", "-p", os.fspath(self.cwd)])
self.call(["mkdir", "-p", os.fspath(self.cwd)], cwd="/")

return self

Expand Down

0 comments on commit a361670

Please sign in to comment.