mirror of
https://github.com/containers/podman.git
synced 2025-06-03 03:07:56 +08:00
Add removal failure test after unpause
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #190 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
7c7a85521e
commit
09d12d9be6
@ -101,6 +101,11 @@ function teardown() {
|
||||
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} ps -a --filter id=$ctr_id"
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
# Container should be running after unpause and shouldn't
|
||||
# be removable without the force flag.
|
||||
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} rm $ctr_id"
|
||||
echo "$output"
|
||||
[ "$status" -eq 125 ]
|
||||
run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} rm -f $ctr_id"
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
|
Reference in New Issue
Block a user