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/helpers.bash | |
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/helpers.bash')
-rw-r--r-- | test/system/helpers.bash | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash index 2cced10c2..6a7c6cc42 100644 --- a/test/system/helpers.bash +++ b/test/system/helpers.bash @@ -521,5 +521,15 @@ function remove_same_dev_warning() { output=$(printf '%s\n' "${lines[@]}") } +# 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" +} + # END miscellaneous tools ############################################################################### |