summaryrefslogtreecommitdiff
path: root/cmd/podman/shell_completion_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/shell_completion_test.go')
-rw-r--r--cmd/podman/shell_completion_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/shell_completion_test.go b/cmd/podman/shell_completion_test.go
index 9bd821d8d..792beeb19 100644
--- a/cmd/podman/shell_completion_test.go
+++ b/cmd/podman/shell_completion_test.go
@@ -33,7 +33,9 @@ func TestShellCompletionFunctions(t *testing.T) {
func checkCommand(t *testing.T, cmd *cobra.Command) {
if cmd.HasSubCommands() {
for _, childCmd := range cmd.Commands() {
- checkCommand(t, childCmd)
+ if !childCmd.Hidden {
+ checkCommand(t, childCmd)
+ }
}
// if not check if completion for that command is provided