mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
Fix kill test obtaining CID
It's possible/likely the container image for the test will need to be pulled as part of the `run` command. Due to the way BATS handles output, messages regarding image-pull could be misinterpreted as the container's CID. Force the CID to be obtained by only the last line of output. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
@ -16,7 +16,8 @@ load helpers
|
||||
echo READY;
|
||||
while ! test -e /stop; do sleep 0.05; done;
|
||||
echo DONE"
|
||||
cid="$output"
|
||||
# Ignore output regarding pulling/processing container images
|
||||
cid=$(echo "$output" | tail -1)
|
||||
|
||||
# Run 'logs -f' on that container, but run it in the background with
|
||||
# redirection to a named pipe from which we (foreground job) read
|
||||
|
Reference in New Issue
Block a user