Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize command alias test with upstream #1395

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions dnf-behave-tests/dnf/command-aliases.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ Scenario: "nonexistent" is not an alias for any dnf command
Scenario Outline: "<alias>" is an alias for "<command>"
When I execute dnf with args "<alias> -h"
Then the exit code is 0
And stdout contains "Usage:\n.*<command>"
And stdout does not contain "No such command"
And stderr does not contain "No such command"
# The exact output is now under discussion
# And stdout contains "Usage:\n.*<command>"
And stdout contains "Usage:\n"
And stdout does not contain "Unknown argument"
And stderr does not contain "Unknown argument"

Examples:
| command | alias |
Expand All @@ -29,7 +31,6 @@ Examples:
| environment | environment |
| group | group |
| group | grp |
| help | help |
| history | history |
| info | info |
| install | in |
Expand Down
Loading