diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-05-24 13:18:56 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-05-24 16:07:39 +0200 |
commit | 5268314e5376c3da7a1123ee1954b466baf2d911 (patch) | |
tree | e523b93b34538faf7df9562143819eaab18696dd /test/system | |
parent | d3d3a207de06935f77edd937980e2540f62bc11c (diff) | |
download | podman-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.bats | 8 |
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 |