Skip to content

Commit

Permalink
Synchronize command alias test with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
jrohel committed Oct 16, 2023
1 parent 511ce14 commit 0ee4287
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit 0ee4287

Please sign in to comment.