diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-07-27 14:10:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 14:10:19 -0400 |
commit | 432348e8e4e95d32bb26ceca4d467ff9f726dd89 (patch) | |
tree | b1551e08b62c37dc7ca7a0ce3f32e839802ed197 /test/system/200-pod.bats | |
parent | eea8e570f2af82944e61410e5e7dd9b540feae34 (diff) | |
parent | 75419c5d887e23f93a465311b02bb76d8cea1940 (diff) | |
download | podman-432348e8e4e95d32bb26ceca4d467ff9f726dd89.tar.gz podman-432348e8e4e95d32bb26ceca4d467ff9f726dd89.tar.bz2 podman-432348e8e4e95d32bb26ceca4d467ff9f726dd89.zip |
Merge pull request #14959 from rhatdan/rm
When removing objects specifying --force,podman should exit with 0
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r-- | test/system/200-pod.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats index 667e2baef..da2f7cd59 100644 --- a/test/system/200-pod.bats +++ b/test/system/200-pod.bats @@ -547,4 +547,11 @@ io.max | $lomajmin rbps=1048576 wbps=1048576 riops=max wiops=max wait } +@test "podman pod rm --force bogus" { + run_podman 1 pod rm bogus + is "$output" "Error: .*bogus.*: no such pod" "Should print error" + run_podman pod rm --force bogus + is "$output" "" "Should print no output" +} + # vim: filetype=sh |