summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/system/010-images.bats11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats
index 257508418..352c3aa95 100644
--- a/test/system/010-images.bats
+++ b/test/system/010-images.bats
@@ -312,4 +312,15 @@ Deleted: $pauseID"
is "$output" ""
}
+@test "podman images --size" {
+ run_podman images
+ is "${lines[0]}" "REPOSITORY.*TAG.*IMAGE ID.*CREATED.*SIZE"
+ run_podman images --noheading --format "{{.Size}}"
+ is "$output" ".* MB"
+ run_podman images --size=false
+ is "${lines[0]}" "REPOSITORY.*TAG.*IMAGE ID.*CREATED"
+ run_podman images --noheading --format "{{.Size}}" --size=false
+ is "$output" "0 B"
+}
+
# vim: filetype=sh