diff options
author | Chris Evich <cevich@redhat.com> | 2020-02-24 12:33:44 -0500 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2020-02-25 12:34:26 -0500 |
commit | 4511e15f8cde510e2224ac3d090f51fa120359bd (patch) | |
tree | 272c08d0c7aa029226f60a2da9512d9395034872 /test | |
parent | 9f69c4ecafca52e986fe7469d9087131a082a432 (diff) | |
download | podman-4511e15f8cde510e2224ac3d090f51fa120359bd.tar.gz podman-4511e15f8cde510e2224ac3d090f51fa120359bd.tar.bz2 podman-4511e15f8cde510e2224ac3d090f51fa120359bd.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/system/130-kill.bats | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/system/130-kill.bats b/test/system/130-kill.bats index e6a77222a..8085b171e 100644 --- a/test/system/130-kill.bats +++ b/test/system/130-kill.bats @@ -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 |