diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-21 10:34:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 10:34:40 +0100 |
commit | 248dbf6089922903d12553497a2faae27d1b503b (patch) | |
tree | 335c4daf4f583fc1c9c85c9844b7eda5f59fefb4 /test/system | |
parent | 447e947aed160de86d1bb3d2f09a3628a25a7511 (diff) | |
parent | 95dad4d8a443682e59c14a94035a111bab3e42fc (diff) | |
download | podman-248dbf6089922903d12553497a2faae27d1b503b.tar.gz podman-248dbf6089922903d12553497a2faae27d1b503b.tar.bz2 podman-248dbf6089922903d12553497a2faae27d1b503b.zip |
Merge pull request #13541 from vrothberg/rmi-ignore
podman rmi --ignore
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/010-images.bats | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats index dbf4b2828..257508418 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -303,4 +303,13 @@ Deleted: $pauseID" run_podman image exists $IMAGE } +@test "podman rmi --ignore" { + random_image_name=$(random_string) + random_image_name=${random_image_name,,} # name must be lowercase + run_podman 1 rmi $random_image_name + is "$output" "Error: $random_image_name: image not known.*" + run_podman rmi --ignore $random_image_name + is "$output" "" +} + # vim: filetype=sh |