Skip to content

Commit

Permalink
Update module info tests exit code and output
Browse files Browse the repository at this point in the history
dnf5 exits with 0, unlike dnf4.

There is a general issue about exit codes of query commands:
rpm-software-management/dnf5#1075
  • Loading branch information
kontura committed Nov 13, 2024
1 parent e26b653 commit da21e8e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dnf-behave-tests/dnf/module/platform.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ Scenario: I can't see pseudo-module in module listing

Scenario: I can't list info for the pseudo-module
When I execute dnf with args "module info pseudoplatform"
Then the exit code is 1
And stdout is
"""
Unable to resolve argument pseudoplatform
"""
Then the exit code is 0
And stdout is empty
And stderr is
"""
<REPOSYNC>
Error: No matching Modules to list
No matches found for "pseudoplatform".
"""


Expand Down

0 comments on commit da21e8e

Please sign in to comment.