summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-21 10:34:40 +0100
committerGitHub <noreply@github.com>2022-03-21 10:34:40 +0100
commit248dbf6089922903d12553497a2faae27d1b503b (patch)
tree335c4daf4f583fc1c9c85c9844b7eda5f59fefb4 /test
parent447e947aed160de86d1bb3d2f09a3628a25a7511 (diff)
parent95dad4d8a443682e59c14a94035a111bab3e42fc (diff)
downloadpodman-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')
-rw-r--r--test/system/010-images.bats9
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