We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9f624e + 6bf1d3a commit 488c077Copy full SHA for 488c077
tests/integration/tty.bats
@@ -171,15 +171,13 @@ function teardown() {
171
EOF
172
)
173
174
- # run the exec
+ # Run the detached exec.
175
runc exec -t --pid-file pid.txt -d --console-socket "$CONSOLE_SOCKET" -p <(echo "$tty_info_with_consize_size") test_busybox
176
[ "$status" -eq 0 ]
177
-
178
- # check the pid was generated
179
[ -e pid.txt ]
180
181
- # wait for the process to finish
182
- timeout 5 tail --pid="$(head -n 1 pid.txt)" -f /dev/null
+ # Wait for the exec to finish.
+ wait_pids_gone 100 0.5 "$(cat pid.txt)"
183
184
tty_info=$(
185
cat <<EOF
0 commit comments