aboutsummaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-05-24 13:18:56 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-05-24 16:07:39 +0200
commit5268314e5376c3da7a1123ee1954b466baf2d911 (patch)
treee523b93b34538faf7df9562143819eaab18696dd /test/system
parentd3d3a207de06935f77edd937980e2540f62bc11c (diff)
downloadpodman-5268314e5376c3da7a1123ee1954b466baf2d911.tar.gz
podman-5268314e5376c3da7a1123ee1954b466baf2d911.tar.bz2
podman-5268314e5376c3da7a1123ee1954b466baf2d911.zip
podman image mount: print pretty table
Make sure that `podman image mount` prints a pretty table unless there is only argument passed and without a custom format. Fixing a TODO item brought me to the specific code location and revealed the fart in the logic. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/060-mount.bats8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/system/060-mount.bats b/test/system/060-mount.bats
index 7addbd88e..2735d2afd 100644
--- a/test/system/060-mount.bats
+++ b/test/system/060-mount.bats
@@ -50,6 +50,10 @@ load helpers
run_podman image mount $IMAGE
mount_path="$output"
+ # Make sure that `mount -a` prints a table
+ run_podman image mount -a
+ is "$output" "$IMAGE .*$mount_path"
+
test -d $mount_path
# Image is custom-built and has a file containing the YMD tag. Check it.
@@ -62,8 +66,8 @@ load helpers
run_podman image mount
is "$output" "$IMAGE *$mount_path" "podman image mount with no args"
- # Clean up
- run_podman image umount $IMAGE
+ # Clean up: -f since we mounted it twice
+ run_podman image umount -f $IMAGE
is "$output" "$iid" "podman image umount: image ID of what was umounted"
run_podman image umount $IMAGE