From 77a2bbb1c0df2536638e5a9030cda05d6524513e Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 16 Oct 2019 10:30:57 +0200 Subject: 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 --- test/system/015-help.bats | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/system') 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) -- cgit v1.2.3-54-g00ecf