diff options
author | baude <bbaude@redhat.com> | 2018-01-02 16:29:43 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-08 19:12:17 +0000 |
commit | 7b08aa78e4ede4c54fda6cd9917bb62e18d0d634 (patch) | |
tree | 1c480d9dfb8db3268dc3fdcca827792278a3ae47 /test/podman_inspect.bats | |
parent | 6baf6e461de6e560cc48d35239e7c392bec4481c (diff) | |
download | podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.tar.gz podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.tar.bz2 podman-7b08aa78e4ede4c54fda6cd9917bb62e18d0d634.zip |
Shortcut for most recent container
It is desirable to have a shortcut for the most
recently created container. We can now use "**latest"
to represent the most recent container instead of its
container ID or name. For example:
Signed-off-by: baude <bbaude@redhat.com>
Closes: #179
Approved by: baude
Diffstat (limited to 'test/podman_inspect.bats')
-rw-r--r-- | test/podman_inspect.bats | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/podman_inspect.bats b/test/podman_inspect.bats index 5c353aae8..9f9336f48 100644 --- a/test/podman_inspect.bats +++ b/test/podman_inspect.bats @@ -45,8 +45,7 @@ function setup() { run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} create ${BB} ls" echo "$output" [ "$status" -eq 0 ] - ctr_id="$output" - run bash -c "${PODMAN_BINARY} $PODMAN_OPTIONS inspect --size $ctr_id | python -m json.tool | grep SizeRootFs" + run bash -c "${PODMAN_BINARY} $PODMAN_OPTIONS inspect --size -l | python -m json.tool | grep SizeRootFs" echo "$output" [ "$status" -eq 0 ] } |