summaryrefslogtreecommitdiff
path: root/test/system/015-help.bats
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-10-16 10:30:57 +0200
committerValentin Rothberg <rothberg@redhat.com>2019-10-23 13:48:54 +0200
commit77a2bbb1c0df2536638e5a9030cda05d6524513e (patch)
tree9d2eb86f75ff52c4d220eaa2117ced3f77889156 /test/system/015-help.bats
parent46ad6bc1faac82555a9e6cfea93536e2a504e2e8 (diff)
downloadpodman-77a2bbb1c0df2536638e5a9030cda05d6524513e.tar.gz
podman-77a2bbb1c0df2536638e5a9030cda05d6524513e.tar.bz2
podman-77a2bbb1c0df2536638e5a9030cda05d6524513e.zip
stats: list all running containers unless specified otherwise
Unless specified otherwise by --all, --latest or via arguments, list all running containers. This matches the behaviour of Docker and is also illustrated in the man pages where containers and options are marked to be optional. Fixes: #4274 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/system/015-help.bats')
-rw-r--r--test/system/015-help.bats8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/system/015-help.bats b/test/system/015-help.bats
index a987f04bc..fd4be87b2 100644
--- a/test/system/015-help.bats
+++ b/test/system/015-help.bats
@@ -55,9 +55,11 @@ function check_help() {
# If usage has required arguments, try running without them
if expr "$usage" : '.*\[flags\] [A-Z]' >/dev/null; then
- dprint "podman $@ $cmd (without required args)"
- run_podman 125 "$@" $cmd
- is "$output" "Error:"
+ if [ "$cmd" != "stats"]; then
+ dprint "podman $@ $cmd (without required args)"
+ run_podman 125 "$@" $cmd
+ is "$output" "Error:"
+ fi
fi
count=$(expr $count + 1)