8000 Pass cwd to first two calls · pypa/cibuildwheel@a361670 · GitHub
[go: up one dir, main page]

Skip to content

Commit a361670

Browse files
committed
Pass cwd to first two calls
1 parent c4bb045 commit a361670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cibuildwheel/oci_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ def __enter__(self) -> "OCIContainer":
110110
self.bash_stdout = self.process.stdout
111111

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

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

121121
return self
122122

0 commit comments

Comments
 (0)
0