aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-06-16 16:20:30 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-06-16 16:59:47 +0200
commit09c462d735082efa0489b66c66f0590460f4f00c (patch)
tree6f13726227d9ac4c6ab649b0953f6f504a2a4637 /test
parent82936d89887d8a649c6e439cef85304882c44c46 (diff)
downloadpodman-09c462d735082efa0489b66c66f0590460f4f00c.tar.gz
podman-09c462d735082efa0489b66c66f0590460f4f00c.tar.bz2
podman-09c462d735082efa0489b66c66f0590460f4f00c.zip
fix "podman -h" help output
`podman -h` currently returns an error: `Error: pflag: help requested` This bug was introduced in 44d037898ebc, the problem is that we wrap the error and cobra lib checks with `==` for this one and not errors.Is(). I have a PR upstream to fix this but for now this also works. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/system/015-help.bats2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/015-help.bats b/test/system/015-help.bats
index 1356c99a0..dd5a7ed44 100644
--- a/test/system/015-help.bats
+++ b/test/system/015-help.bats
@@ -199,7 +199,7 @@ function check_help() {
check_help
# Test for regression of #7273 (spurious "--remote" help on output)
- for helpopt in help --help; do
+ for helpopt in help --help -h; do
run_podman $helpopt
is "${lines[0]}" "Manage pods, containers and images" \
"podman $helpopt: first line of output"