diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-09 14:47:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 14:47:05 -0500 |
commit | da062b5bd03dd88060eb91c7d02936d5e7427cb9 (patch) | |
tree | 4b61e35336b54b815e0cf844778eb8e29906a120 /test/system/015-help.bats | |
parent | 9abbe0728c5050914168a154622087a4dacd4dfe (diff) | |
parent | 2870a0b0a6b94528b82df7cee57c8c6a0252fc85 (diff) | |
download | podman-da062b5bd03dd88060eb91c7d02936d5e7427cb9.tar.gz podman-da062b5bd03dd88060eb91c7d02936d5e7427cb9.tar.bz2 podman-da062b5bd03dd88060eb91c7d02936d5e7427cb9.zip |
Merge pull request #8635 from Luap99/shell-completion-test
Add system test for shell completion
Diffstat (limited to 'test/system/015-help.bats')
-rw-r--r-- | test/system/015-help.bats | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/system/015-help.bats b/test/system/015-help.bats index 22db8be8a..5f38c34a1 100644 --- a/test/system/015-help.bats +++ b/test/system/015-help.bats @@ -12,22 +12,11 @@ # load helpers -# run 'podman help', parse the output looking for 'Available Commands'; -# return that list. -function podman_commands() { - dprint "$@" - run_podman help "$@" |\ - awk '/^Available Commands:/{ok=1;next}/^Options:/{ok=0}ok { print $1 }' |\ - grep . - "$output" -} - - function check_help() { local count=0 local -A found - for cmd in $(podman_commands "$@"); do + for cmd in $(_podman_commands "$@"); do # Human-readable podman command string, with multiple spaces collapsed command_string="podman $* $cmd" command_string=${command_string// / } # 'podman x' -> 'podman x' |