tests/test-help.sh: Rework and strengthen checks
authorJonathan Lebon <jlebon@redhat.com>
Tue, 5 Sep 2017 18:27:20 +0000 (14:27 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 13 Sep 2017 14:32:20 +0000 (14:32 +0000)
commit077de8ea460562c9372f45b13a9b42867f9ad832
tree19672d0d57403d84f6e901d7a6f69212846aea6a
parentec9a58f2476bbce1e0ae6f267995b64f7c85162c
tests/test-help.sh: Rework and strengthen checks

The `sed` expression wasn't actually matching the main output, so we
weren't recursing into the subcommands. Update the syntax to match the
current output and add a check so we don't miss that happening again.

Add a check that the help output is only printed once in all
circumstances. Also add a check for proper handling of non-existent
commands.

Closes: #1126
Approved by: cgwalters
tests/test-help.sh